usb: hub: remove assignment from if condition
authorKris Borer <kborer@gmail.com>
Tue, 11 Aug 2015 15:12:45 +0000 (11:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Aug 2015 23:54:02 +0000 (16:54 -0700)
commit088a3daeadf6f4123f54d5208b0ec7cbbfc8853f
tree63d485291e4fb6c357e075dd0efc541971161fd8
parente3ec4fda072c72c8ed014b58a3a4dd54b2b454bd
usb: hub: remove assignment from if condition

Fix one occurrence 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, E2, E3;
statement S1, S2;
binary operator b;
@@

+ i = E;
  if (
- (i = E)
+ i
  b
  ... && E2 && E3 ) S1 else S2
// </smpl>

Signed-off-by: Kris Borer <kborer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
This page took 0.034243 seconds and 5 git commands to generate.