aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/cpia2
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-03-07 04:49:36 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 12:12:04 -0400
commit20f2e1aa77314decf395558fd3a13875c0e56074 (patch)
treeef72c269ac80c84afdd538d5fbb4a11aea7ea605 /drivers/media/usb/cpia2
parentmedia: imx: add 8-bit grayscale support (diff)
downloadlinux-dev-20f2e1aa77314decf395558fd3a13875c0e56074.tar.xz
linux-dev-20f2e1aa77314decf395558fd3a13875c0e56074.zip
media: 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 <johan@kernel.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/cpia2')
-rw-r--r--drivers/media/usb/cpia2/cpia2_usb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/usb/cpia2/cpia2_usb.c b/drivers/media/usb/cpia2/cpia2_usb.c
index f3a1e5b1e57c..b51fc372ca25 100644
--- a/drivers/media/usb/cpia2/cpia2_usb.c
+++ b/drivers/media/usb/cpia2/cpia2_usb.c
@@ -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");
}