diff options
author | Kris Borer <kborer@gmail.com> | 2015-07-14 09:28:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-22 15:42:13 -0700 |
commit | 0faaad461547e2412e9b519cd757a99b3ebc1302 (patch) | |
tree | 296f051d15ea4971690e9c6a6cd62260168efbe8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c2a298d96628803586f1ca2027b6387f4e4b5a31 (diff) |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions