Commit 088a3dae authored by Kris Borer's avatar Kris Borer Committed by Greg Kroah-Hartman

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: default avatarKris Borer <kborer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3ec4fda
...@@ -671,8 +671,8 @@ static void hub_irq(struct urb *urb) ...@@ -671,8 +671,8 @@ static void hub_irq(struct urb *urb)
if (hub->quiescing) if (hub->quiescing)
return; return;
if ((status = usb_submit_urb(hub->urb, GFP_ATOMIC)) != 0 status = usb_submit_urb(hub->urb, GFP_ATOMIC);
&& status != -ENODEV && status != -EPERM) if (status != 0 && status != -ENODEV && status != -EPERM)
dev_err(hub->intfdev, "resubmit --> %d\n", status); dev_err(hub->intfdev, "resubmit --> %d\n", status);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment