cpia2_usb: drop bogus interface-release call
Subsystems (2)
PATCH 1/1 cpia2_usb: drop bogus interface-release call
Drop bogus call to usb_driver_release_interface() from the disconnect() callback. As the interface is already being unbound at this point, usb_driver_release_interface() simply returns early.
Signed-off-by Johan Hovold <[email protected]>
--- drivers/media/usb/cpia2/cpia2_usb.c | 3 --- 1 file changed, 3 deletions(-)
drivers/media/usb/cpia2/cpia2_usb.c +0 -3
@@ -910,9 +910,6 @@ static void cpia2_usb_disconnect(struct usb_interface *intf)wake_up_interruptible (&cam->wq_stream); } -DBG ("Releasing interface\n" ); -usb_driver_release_interface (&cpia2_driver, intf); -LOG ("CPiA2 camera disconnected.\n" ); }
Quoted 5 lines · Johan Hovold
Drop bogus call to
usb_driver_release_interface()from thedisconnect()callback. As the interface is already being unbound at this point,usb_driver_release_interface()simply returns early.Signed-off-by Johan Hovold <[email protected]>
Reviewed-by Greg Kroah-Hartman <[email protected]>