From: Dan Carpenter Date: Thu, 22 Oct 2015 09:09:05 +0000 (-0200) Subject: [media] uvcvideo: small cleanup in uvc_video_clock_update() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0aff8a894a2be4c22e6414db33061153a4b35bc9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- 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); } /* ------------------------------------------------------------------------