mirror of https://gitee.com/openkylin/linux.git
usb: iforce-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
6265d62f31
commit
8f21d119f4
|
@ -178,9 +178,9 @@ static int iforce_usb_probe(struct usb_interface *intf,
|
|||
|
||||
fail:
|
||||
if (iforce) {
|
||||
if (iforce->irq) usb_free_urb(iforce->irq);
|
||||
if (iforce->out) usb_free_urb(iforce->out);
|
||||
if (iforce->ctrl) usb_free_urb(iforce->ctrl);
|
||||
usb_free_urb(iforce->irq);
|
||||
usb_free_urb(iforce->out);
|
||||
usb_free_urb(iforce->ctrl);
|
||||
kfree(iforce);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue