aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/winbond/wb35rx.c
diff options
context:
space:
mode:
authorHarsh Kumar <harsh1kumar@gmail.com>2013-05-30 10:05:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 20:59:47 +0900
commitb5153e973f4688df69ae4e8614d054609a40ad4e (patch)
tree944008894fe4a05bbcbfecbc6912176eca72e2cd /drivers/staging/winbond/wb35rx.c
parentstaging: fwserial: Use normal logging styles (diff)
downloadlinux-dev-b5153e973f4688df69ae4e8614d054609a40ad4e.tar.xz
linux-dev-b5153e973f4688df69ae4e8614d054609a40ad4e.zip
Staging: winbond: usb_free_urb(NULL) is safe
usb_free_urb(NULL) is safe. So, the check was removed. Also, couple of checkpatch.pl fixes Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/winbond/wb35rx.c')
-rw-r--r--drivers/staging/winbond/wb35rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/winbond/wb35rx.c b/drivers/staging/winbond/wb35rx.c
index f118eeba396a..8d71bc2f5940 100644
--- a/drivers/staging/winbond/wb35rx.c
+++ b/drivers/staging/winbond/wb35rx.c
@@ -343,8 +343,7 @@ void Wb35Rx_destroy(struct hw_data *pHwData)
} while (pWb35Rx->EP3vm_state != VM_STOP);
msleep(10); /* Delay for waiting function exit */
- if (pWb35Rx->RxUrb)
- usb_free_urb(pWb35Rx->RxUrb);
+ usb_free_urb(pWb35Rx->RxUrb);
pr_debug("Wb35Rx_destroy OK\n");
}