Skip to content

Commit

Permalink
[media] gspca_finepix: Remove unnecessary lock/unlock call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Sep 13, 2012
1 parent 345321d commit ff8f25d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/usb/gspca/finepix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ff8f25d

Please sign in to comment.