]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: comedi: Remove parentheses around right side assignment
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Fri, 13 Mar 2015 11:29:30 +0000 (14:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Mar 2015 17:41:15 +0000 (18:41 +0100)
commitf0dff42124d3d312c236c5b934edeac477c818f7
tree49b924d0776a5f34870da082938e0ebea4578829
parent81906c357a37bd82ca041bbdde9c663ea656f300
Staging: comedi: Remove parentheses around right side assignment

Parentheses are not needed around the right hand side of an assignment.
This patch remove parenthese of such occurences. Issue was detected and
solved using the following coccinelle script:

@rule1@
identifier x, y, z;
expression E1, E2;
@@

(
x = (y == z);
|
x = (E1 == E2);
|
 x =
-(
...
-)
 ;
)

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_3501.c
drivers/staging/comedi/drivers/ni_mio_common.c
drivers/staging/comedi/drivers/serial2002.c