Commit c69694b7 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Greg Kroah-Hartman
Browse files

usb: catc free urb cleanup



- usb_free_urb() cleanup

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 794c944e
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -786,13 +786,9 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
	if ((!catc->ctrl_urb) || (!catc->tx_urb) || 
	    (!catc->rx_urb) || (!catc->irq_urb)) {
		err("No free urbs available.");
		if (catc->ctrl_urb)
		usb_free_urb(catc->ctrl_urb);
		if (catc->tx_urb)
		usb_free_urb(catc->tx_urb);
		if (catc->rx_urb)
		usb_free_urb(catc->rx_urb);
		if (catc->irq_urb)
		usb_free_urb(catc->irq_urb);
		free_netdev(netdev);
		return -ENOMEM;