mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 20:07:09 +00:00
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>
This commit is contained in:
parent
e3ec4fda07
commit
088a3daead
@ -671,8 +671,8 @@ resubmit:
|
||||
if (hub->quiescing)
|
||||
return;
|
||||
|
||||
if ((status = usb_submit_urb(hub->urb, GFP_ATOMIC)) != 0
|
||||
&& status != -ENODEV && status != -EPERM)
|
||||
status = usb_submit_urb(hub->urb, GFP_ATOMIC);
|
||||
if (status != 0 && status != -ENODEV && status != -EPERM)
|
||||
dev_err(hub->intfdev, "resubmit --> %d\n", status);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user