diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-02-17 09:45:28 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 15:22:18 -0800 |
commit | 7aa47db9d8721df0608f70fcc6c01cd766b5cc94 (patch) | |
tree | 9ddf8705c09710bfdf2415b71d949665cb262974 /drivers/staging/vt6656 | |
parent | 7cb07dc4e4431546979242f86f4cf5af233bb860 (diff) | |
download | linux-7aa47db9d8721df0608f70fcc6c01cd766b5cc94.tar.gz linux-7aa47db9d8721df0608f70fcc6c01cd766b5cc94.tar.bz2 linux-7aa47db9d8721df0608f70fcc6c01cd766b5cc94.zip |
staging: vt6656: simplify tests of successful urb status
Use if (status) in tests for successful urb status.
This replaces (status != 0) and (status == STATUS_SUCCESS).
(STATUS_SUCCESS is defined for NDIS status in this driver, but
was being misused)
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index f27eb9a8d249..f546553de66f 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -116,7 +116,7 @@ static void vnt_start_interrupt_urb_complete(struct urb *urb) break; } - if (status != STATUS_SUCCESS) { + if (status) { priv->int_buf.in_use = false; dev_dbg(&priv->usb->dev, "%s status = %d\n", __func__, status); @@ -221,7 +221,7 @@ int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb) rcb); status = usb_submit_urb(urb, GFP_ATOMIC); - if (status != 0) { + if (status) { dev_dbg(&priv->usb->dev, "Submit Rx URB failed %d\n", status); return STATUS_FAILURE; } @@ -282,7 +282,7 @@ int vnt_tx_context(struct vnt_private *priv, context); status = usb_submit_urb(urb, GFP_ATOMIC); - if (status != 0) { + if (status) { dev_dbg(&priv->usb->dev, "Submit Tx URB failed %d\n", status); context->in_use = false; |