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

usb: zd1201 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 8fd31e1d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1828,9 +1828,7 @@ 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);
	kfree(zd);
	return err;