All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] staging: comedi: Merge if conditions
@ 2016-02-11 14:38 Amitoj Kaur Chawla
  2016-02-12  3:46 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Amitoj Kaur Chawla @ 2016-02-11 14:38 UTC (permalink / raw)
  To: outreachy-kernel

This patchset merges if conditions with the same statements using the
following Coccinelle script:

//<smpl>
@@
statement S;
expression e,x;
@@

* if(e)
(
{ ... return ...; }
&
S
)

* if(x)
(
{ ... return ...; }
&
S
)
//</smpl>

Amitoj Kaur Chawla (5):
  staging: comedi: drivers: comedi_8254: Merge if conditions
  staging: comedi: comedi_fops: Merge if conditions
  staging: comedi: range: Merge if conditions
  staging: comedi: drivers: dt282x: Merge if conditions
  staging: comedi: drivers: pcmuio: Merge if conditions

Changes in v3:
        -Removed extraneous parantheses in Patch 1/5 and 2/5

Changes in v2:
        -Patch 1/5 Merged if conditions instead of dropping them.
        -Patch 2/5 Merged Patch 2/6 and 3/6 of first version by not
         dropping if conditions and only merging them for the same
         file.
        -Patch 3/5 Removed unnecessary parentheses.
        -Patch 4/5 and 5/5 While merging use !x || !y instead of
         !(x && y)

 drivers/staging/comedi/comedi_fops.c         | 14 +++-----------
 drivers/staging/comedi/drivers/comedi_8254.c |  4 +---
 drivers/staging/comedi/drivers/dt282x.c      |  5 +----
 drivers/staging/comedi/drivers/pcmuio.c      |  5 +----
 drivers/staging/comedi/range.c               |  4 +---
 5 files changed, 7 insertions(+), 25 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Outreachy kernel] [PATCH v3 0/5] staging: comedi: Merge if conditions
  2016-02-11 14:38 [PATCH v3 0/5] staging: comedi: Merge if conditions Amitoj Kaur Chawla
@ 2016-02-12  3:46 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-02-12  3:46 UTC (permalink / raw)
  To: Amitoj Kaur Chawla; +Cc: outreachy-kernel

On Thu, Feb 11, 2016 at 08:08:08PM +0530, Amitoj Kaur Chawla wrote:
> This patchset merges if conditions with the same statements using the
> following Coccinelle script:
> 
> //<smpl>
> @@
> statement S;
> expression e,x;
> @@
> 
> * if(e)
> (
> { ... return ...; }
> &
> S
> )
> 
> * if(x)
> (
> { ... return ...; }
> &
> S
> )
> //</smpl>
> 
> Amitoj Kaur Chawla (5):
>   staging: comedi: drivers: comedi_8254: Merge if conditions
>   staging: comedi: comedi_fops: Merge if conditions
>   staging: comedi: range: Merge if conditions
>   staging: comedi: drivers: dt282x: Merge if conditions
>   staging: comedi: drivers: pcmuio: Merge if conditions
> 
> Changes in v3:
>         -Removed extraneous parantheses in Patch 1/5 and 2/5
> 
> Changes in v2:
>         -Patch 1/5 Merged if conditions instead of dropping them.
>         -Patch 2/5 Merged Patch 2/6 and 3/6 of first version by not
>          dropping if conditions and only merging them for the same
>          file.
>         -Patch 3/5 Removed unnecessary parentheses.
>         -Patch 4/5 and 5/5 While merging use !x || !y instead of
>          !(x && y)
> 
>  drivers/staging/comedi/comedi_fops.c         | 14 +++-----------
>  drivers/staging/comedi/drivers/comedi_8254.c |  4 +---
>  drivers/staging/comedi/drivers/dt282x.c      |  5 +----
>  drivers/staging/comedi/drivers/pcmuio.c      |  5 +----
>  drivers/staging/comedi/range.c               |  4 +---
>  5 files changed, 7 insertions(+), 25 deletions(-)

Sorry I didn't see this version first.

I don't want to take these for the same reasons as before, sorry.

greg k-h


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-12  3:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-11 14:38 [PATCH v3 0/5] staging: comedi: Merge if conditions Amitoj Kaur Chawla
2016-02-12  3:46 ` [Outreachy kernel] " Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.