diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2006-11-08 09:35:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 17:23:33 -0500 |
commit | f988f272fe8de462045e9f298e5b7f1e39b2e53a (patch) | |
tree | 656f9dacc89086ced847eb9b8652e32de6dbc345 /drivers/net/wireless | |
parent | 8fd31e1d85d5c13c1273013067474ebb73ad6fd1 (diff) |
usb: zd1201 free urb cleanup
- usb_free_urb() cleanup
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/zd1201.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 36b29ff05814..6cb66a356c96 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -1828,10 +1828,8 @@ err_start: | |||
1828 | /* Leave the device in reset state */ | 1828 | /* Leave the device in reset state */ |
1829 | zd1201_docmd(zd, ZD1201_CMDCODE_INIT, 0, 0, 0); | 1829 | zd1201_docmd(zd, ZD1201_CMDCODE_INIT, 0, 0, 0); |
1830 | err_zd: | 1830 | err_zd: |
1831 | if (zd->tx_urb) | 1831 | usb_free_urb(zd->tx_urb); |
1832 | usb_free_urb(zd->tx_urb); | 1832 | usb_free_urb(zd->rx_urb); |
1833 | if (zd->rx_urb) | ||
1834 | usb_free_urb(zd->rx_urb); | ||
1835 | kfree(zd); | 1833 | kfree(zd); |
1836 | return err; | 1834 | return err; |
1837 | } | 1835 | } |