mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 17:50:54 +07:00
usb: irda-usb 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
8563650da0
commit
8fd31e1d85
@ -1793,10 +1793,8 @@ static int irda_usb_probe(struct usb_interface *intf,
|
||||
err_out_2:
|
||||
usb_free_urb(self->tx_urb);
|
||||
err_out_1:
|
||||
for (i = 0; i < self->max_rx_urb; i++) {
|
||||
if (self->rx_urb[i])
|
||||
usb_free_urb(self->rx_urb[i]);
|
||||
}
|
||||
for (i = 0; i < self->max_rx_urb; i++)
|
||||
usb_free_urb(self->rx_urb[i]);
|
||||
free_netdev(net);
|
||||
err_out:
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user