staging: comedi: Merge if conditions
v2 cover staging: comedi: Merge if conditions
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 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(-)
Signature · 1 line
1.9.1