diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-10-22 07:09:05 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-12-18 15:21:35 -0200 |
commit | 0aff8a894a2be4c22e6414db33061153a4b35bc9 (patch) | |
tree | 50a3a158f324b389d676d783a3afebe103697bb5 /drivers/media/usb/uvc/uvc_video.c | |
parent | 1ab8c3fc750321726313b222230343de897744b1 (diff) | |
download | linux-0aff8a894a2be4c22e6414db33061153a4b35bc9.tar.bz2 |
[media] uvcvideo: small cleanup in uvc_video_clock_update()
Smatch is not smart enough to see that "&stream->clock.lock" and
"&clock->lock" are the same thing so it complains about the locking
here. Let's make it more consistent.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_video.c')
-rw-r--r-- | drivers/media/usb/uvc/uvc_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index f126859ca848..075a0fe77485 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -706,7 +706,7 @@ void uvc_video_clock_update(struct uvc_streaming *stream, vbuf->vb2_buf.timestamp = timespec_to_ns(&ts); done: - spin_unlock_irqrestore(&stream->clock.lock, flags); + spin_unlock_irqrestore(&clock->lock, flags); } /* ------------------------------------------------------------------------ |