From: Guennadi Liakhovetski Date: Mon, 12 Dec 2016 11:16:50 +0000 (-0200) Subject: [media] uvcvideo: (cosmetic) Remove a superfluous assignment X-Git-Tag: v4.11-rc1~132^2~103 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=313fe8473bd5bf50f5c209df3deafed5f1d84136;p=linux.git [media] uvcvideo: (cosmetic) Remove a superfluous assignment Remove a superfluous assignment to a local variable at the end of a function. Signed-off-by: Guennadi Liakhovetski 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 f3c1c852e401..07a6c833ef7b 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -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;