From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:35:42 +0000 (+0100) Subject: usb: zd1201 free urb cleanup X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~50 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f988f272fe8de462045e9f298e5b7f1e39b2e53a;p=linux-2.6-omap-h63xx.git usb: zd1201 free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 36b29ff0581..6cb66a356c9 100644 --- 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; }