diff options
author | Somya Anand <somyaanand214@gmail.com> | 2015-03-13 22:53:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-16 16:22:16 +0100 |
commit | 68f4b7379651b107574a5151ee700a6b361920e2 (patch) | |
tree | 968e690e464c1b1f0b3ca210edf179e5cf1e8742 /drivers/staging/ft1000 | |
parent | afbd19eea3f652b082b9b6718b351de58de86323 (diff) | |
download | talos-op-linux-68f4b7379651b107574a5151ee700a6b361920e2.tar.gz talos-op-linux-68f4b7379651b107574a5151ee700a6b361920e2.zip |
Staging: i2o: Move assignment out of if statement
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>
Diffstat (limited to 'drivers/staging/ft1000')
0 files changed, 0 insertions, 0 deletions