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>
This commit is contained in:
parent
8fd31e1d85
commit
f988f272fe
@ -1828,10 +1828,8 @@ err_start:
|
|||||||
/* Leave the device in reset state */
|
/* Leave the device in reset state */
|
||||||
zd1201_docmd(zd, ZD1201_CMDCODE_INIT, 0, 0, 0);
|
zd1201_docmd(zd, ZD1201_CMDCODE_INIT, 0, 0, 0);
|
||||||
err_zd:
|
err_zd:
|
||||||
if (zd->tx_urb)
|
usb_free_urb(zd->tx_urb);
|
||||||
usb_free_urb(zd->tx_urb);
|
usb_free_urb(zd->rx_urb);
|
||||||
if (zd->rx_urb)
|
|
||||||
usb_free_urb(zd->rx_urb);
|
|
||||||
kfree(zd);
|
kfree(zd);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user