drivers/staging/line6/driver.c: Drop unneeded put functions.
authorJulia Lawall <julia@diku.dk>
Mon, 16 May 2011 12:24:57 +0000 (14:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 20:31:32 +0000 (13:31 -0700)
This seems to be the result of patches ab366c1a and 1027f476 crossing each
other.  Patch ab366c1a adds calls to usb_put_intf and usb_put_dev at the
end of the function line6_probe, in the error handling code, while patch
1027f476 moves the calls to the corresponding get function from the
beginning to the end of line6_probe, making the calls to put in the error
handling code unnecessary.

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/driver.c

index ea9209d9ceb268ee67663c19ba455725af3133da..851b762319cf20b8b2b90c9624a1b33d51f80593 100644 (file)
@@ -1094,8 +1094,6 @@ static int line6_probe(struct usb_interface *interface,
 err_destruct:
        line6_destruct(interface);
 err_put:
-       usb_put_intf(interface);
-       usb_put_dev(usbdev);
        return ret;
 }