Skip to content

Commit

Permalink
usb: irda-usb free urb cleanup
Browse files Browse the repository at this point in the history
- usb_free_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 8563650 commit 8fd31e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/irda/irda-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8fd31e1

Please sign in to comment.