diff options
author | Kris Borer <kborer@gmail.com> | 2015-07-14 16:28:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-23 01:42:13 +0300 |
commit | 0faaad461547e2412e9b519cd757a99b3ebc1302 (patch) | |
tree | 296f051d15ea4971690e9c6a6cd62260168efbe8 /drivers/usb/host/uhci-grlib.c | |
parent | c2a298d96628803586f1ca2027b6387f4e4b5a31 (diff) | |
download | linux-0faaad461547e2412e9b519cd757a99b3ebc1302.tar.xz |
usb: move assignment out of if condition
Fix four occurrences of checkpatch.pl error:
ERROR: do not use assignment in if condition
The semantic patch that makes this change is:
// <smpl>
@@
identifier i;
expression E;
statement S;
constant c;
binary operator b;
@@
+ i = E;
if (
- (i = E)
+ i
b
c ) S
@@
identifier i, i2;
expression E1, E2;
constant c;
@@
+ if( E1->i ) {
+ i2 = E2;
+ if (i2 < c) {
- if( E1->i && (i2 = E2) < c ) {
...
- }
+ }
+ }
// </smpl>
Signed-off-by: Kris Borer <kborer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/uhci-grlib.c')
0 files changed, 0 insertions, 0 deletions