projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd31e1
)
usb: zd1201 free urb cleanup
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Wed, 8 Nov 2006 14:35:42 +0000
(15:35 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 1 Dec 2006 22:23:33 +0000
(14:23 -0800)
- usb_free_urb() cleanup
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/zd1201.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/zd1201.c
b/drivers/net/wireless/zd1201.c
index 36b29ff058141a712619e55184566b39ce414efd..6cb66a356c96abb08f3c12947b45d99d76cb5b82 100644
(file)
--- a/
drivers/net/wireless/zd1201.c
+++ b/
drivers/net/wireless/zd1201.c
@@
-1828,10
+1828,8
@@
err_start:
/* Leave the device in reset state */
zd1201_docmd(zd, ZD1201_CMDCODE_INIT, 0, 0, 0);
err_zd:
- if (zd->tx_urb)
- usb_free_urb(zd->tx_urb);
- if (zd->rx_urb)
- usb_free_urb(zd->rx_urb);
+ usb_free_urb(zd->tx_urb);
+ usb_free_urb(zd->rx_urb);
kfree(zd);
return err;
}