Staging: i2o: Move assignment out of if statement
authorSomya Anand <somyaanand214@gmail.com>
Fri, 13 Mar 2015 17:23:11 +0000 (22:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:22:16 +0000 (16:22 +0100)
Checkpatch.pl suggest to avoid assignment in if statement.

This patch moves assignments out of the if statement and place
it before the if statement. This is done using following coccinelle
script.

@@
expression E1;
identifier p;
statement S;
@@
- if ((p = E1))
+ p = E1;
+ if (p)
S

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/i2o/bus-osm.c
drivers/staging/i2o/iop.c
drivers/staging/i2o/pci.c

Simple merge
Simple merge
Simple merge