[media] uvcvideo: small cleanup in uvc_video_clock_update()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Oct 2015 09:09:05 +0000 (07:09 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 17:21:35 +0000 (15:21 -0200)
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>
drivers/media/usb/uvc/uvc_video.c

index f126859ca848427afdb1eb901229da4bb8e95549..075a0fe774857ca65773432e9c092f2607d93549 100644 (file)
@@ -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);
 }
 
 /* ------------------------------------------------------------------------