[media] uvcvideo: (cosmetic) Remove a superfluous assignment
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 12 Dec 2016 11:16:50 +0000 (09:16 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 12:54:28 +0000 (10:54 -0200)
Remove a superfluous assignment to a local variable at the end of a
function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_video.c

index f3c1c852e401ad3b5e834b971008faa3ed403d69..07a6c833ef7b8bf1920937fb0c508f3a7942b9b9 100644 (file)
@@ -1262,8 +1262,7 @@ static void uvc_video_decode_bulk(struct urb *urb, struct uvc_streaming *stream,
                        uvc_video_decode_end(stream, buf, stream->bulk.header,
                                stream->bulk.payload_size);
                        if (buf->state == UVC_BUF_STATE_READY)
-                               buf = uvc_queue_next_buffer(&stream->queue,
-                                                           buf);
+                               uvc_queue_next_buffer(&stream->queue, buf);
                }
 
                stream->bulk.header_size = 0;