mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +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
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user