diff options
author | Harsh Kumar <harsh1kumar@gmail.com> | 2012-09-26 14:06:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-26 17:02:54 -0400 |
commit | ee692cfad6520f7cc60b766a3c013f9e6eba6e38 (patch) | |
tree | 1cf190be878cf86cfd13cf6cea3d0a1a594cbacd | |
parent | 926ae525111021a3fa20f26b391d091d6c945275 (diff) |
Staging: winbond: usb_free_urb(NULL) is safe
usb_free_urb(NULL) is safe. So, the check was removed.
Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/winbond/wb35tx.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/winbond/wb35tx.c b/drivers/staging/winbond/wb35tx.c index 474cad8bf5e7..30a77ccfe480 100644 --- a/drivers/staging/winbond/wb35tx.c +++ b/drivers/staging/winbond/wb35tx.c | |||
@@ -170,11 +170,8 @@ void Wb35Tx_destroy(struct hw_data *pHwData) | |||
170 | } while ((pWb35Tx->EP2vm_state != VM_STOP) && (pWb35Tx->EP4vm_state != VM_STOP)); | 170 | } while ((pWb35Tx->EP2vm_state != VM_STOP) && (pWb35Tx->EP4vm_state != VM_STOP)); |
171 | msleep(10); /* Delay for waiting function enter 940623.1.b */ | 171 | msleep(10); /* Delay for waiting function enter 940623.1.b */ |
172 | 172 | ||
173 | if (pWb35Tx->Tx4Urb) | 173 | usb_free_urb(pWb35Tx->Tx4Urb); |
174 | usb_free_urb(pWb35Tx->Tx4Urb); | 174 | usb_free_urb(pWb35Tx->Tx2Urb); |
175 | |||
176 | if (pWb35Tx->Tx2Urb) | ||
177 | usb_free_urb(pWb35Tx->Tx2Urb); | ||
178 | 175 | ||
179 | pr_debug("Wb35Tx_destroy OK\n"); | 176 | pr_debug("Wb35Tx_destroy OK\n"); |
180 | } | 177 | } |