]> Pileus Git - ~andy/linux/commitdiff
[media] gspca_finepix: Remove unnecessary lock/unlock call
authorHans de Goede <hdegoede@redhat.com>
Sun, 9 Sep 2012 10:00:04 +0000 (07:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 20:44:34 +0000 (17:44 -0300)
gspca_main: init_transfer does not do anything between calling sd_start
(which starts the workqueue) and releasing the usb_lock, so this
synchronization is a nop, remove it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/gspca/finepix.c

index 04807eee7772a0e9f9a5136a5d6425fcea016a83..fb68a2934255ac58e2135a1fc5724ed3648f382c 100644 (file)
@@ -87,9 +87,6 @@ static void dostream(struct work_struct *work)
        int ret = 0;
        int len;
 
-       /* synchronize with the main driver */
-       mutex_lock(&gspca_dev->usb_lock);
-       mutex_unlock(&gspca_dev->usb_lock);
        PDEBUG(D_STREAM, "dostream started");
 
        /* loop reading a frame */