Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/staging/line6/driver.c: Drop unneeded put functions.

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>

authored by

Julia Lawall and committed by
Greg Kroah-Hartman
c5cbebf8 10ceaac9

-2
-2
drivers/staging/line6/driver.c
··· 1094 1094 err_destruct: 1095 1095 line6_destruct(interface); 1096 1096 err_put: 1097 - usb_put_intf(interface); 1098 - usb_put_dev(usbdev); 1099 1097 return ret; 1100 1098 } 1101 1099