From: Hans de Goede Date: Sun, 9 Sep 2012 10:00:04 +0000 (-0300) Subject: [media] gspca_finepix: Remove unnecessary lock/unlock call X-Git-Tag: upstream/snapshot3+hdmi~4891^2~1312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff8f25d326da5e7cf6216f368116744341fceb12;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] gspca_finepix: Remove unnecessary lock/unlock call 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/finepix.c b/drivers/media/usb/gspca/finepix.c index 04807ee..fb68a29 100644 --- a/drivers/media/usb/gspca/finepix.c +++ b/drivers/media/usb/gspca/finepix.c @@ -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 */