]> git.karo-electronics.de Git - linux-beck.git/commit
usb: devio: remove assignment from if condition
authorKris Borer <kborer@gmail.com>
Tue, 4 Aug 2015 12:39:31 +0000 (08:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:29:19 +0000 (12:29 -0700)
commit135551ea1abd5038d14825514df7e259fd500033
tree2a50a2df0f93bba85bff64b77882c88e56f88957
parentb4629a7bdfd8fcafc90ded7e6a1f88099105842d
usb: devio: remove assignment from if condition

Fix five occurrences of the 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 S1, S2;
@@

+ i = E;
  if (
- (i = E)
+ i
  ) S1 else S2

@@
identifier i;
expression E;
statement S;
constant c;
binary operator b;
@@

+ i = E;
  if (
- (i = E)
+ i
  b
  c ) S
// </smpl>

Signed-off-by: Kris Borer <kborer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c