mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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
1 changed files with 2 additions and 4 deletions
|
@ -1828,10 +1828,8 @@ static int zd1201_probe(struct usb_interface *interface,
|
|||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue