提交 ec42899c 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4627b1ea
...@@ -307,20 +307,17 @@ static void usb_wwan_indat_callback(struct urb *urb) ...@@ -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);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册