2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

USB: wwan: remove an unneeded check

We already verified that "status" was zero on this else branch.  Since
zero is not equal to -ESHUTDOWN, this condition is always true.  I
removed it and pull everything in an indent level.

This doesn't change how the code works, it's just a cleanup.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dan Carpenter 2012-04-20 09:33:31 +03:00 committed by Greg Kroah-Hartman
parent 4627b1ea03
commit ec42899c2f

View File

@ -307,20 +307,17 @@ static void usb_wwan_indat_callback(struct urb *urb)
} }
/* Resubmit urb so we continue receiving */ /* Resubmit urb so we continue receiving */
if (status != -ESHUTDOWN) { err = usb_submit_urb(urb, GFP_ATOMIC);
err = usb_submit_urb(urb, GFP_ATOMIC); if (err) {
if (err) { if (err != -EPERM) {
if (err != -EPERM) { printk(KERN_ERR "%s: resubmit read urb failed. "
printk(KERN_ERR "%s: resubmit read urb failed. " "(%d)", __func__, err);
"(%d)", __func__, err); /* busy also in error unless we are killed */
/* busy also in error unless we are killed */
usb_mark_last_busy(port->serial->dev);
}
} else {
usb_mark_last_busy(port->serial->dev); usb_mark_last_busy(port->serial->dev);
} }
} else {
usb_mark_last_busy(port->serial->dev);
} }
} }
} }