]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: videobuf2: remove unused variable
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 31 Jan 2019 14:06:07 +0000 (09:06 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 16:47:58 +0000 (11:47 -0500)
Commit 2cc1802f62e5 ("media: vb2: Keep dma-buf buffers mapped until
they are freed") removed code leaving a local variable unused.

Remove it to avoid a compiler warning.

Fixes: 2cc1802f62e5 ("media: vb2: Keep dma-buf buffers mapped until they are freed")
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c

index e07b6bdb6982c14f5004068ce2c8313c5773d0fa..34cc87ca8d5986da520045f3628e02bced89d604 100644 (file)
@@ -1769,7 +1769,6 @@ EXPORT_SYMBOL_GPL(vb2_wait_for_all_buffers);
 static void __vb2_dqbuf(struct vb2_buffer *vb)
 {
        struct vb2_queue *q = vb->vb2_queue;
-       unsigned int i;
 
        /* nothing to do if the buffer is already dequeued */
        if (vb->state == VB2_BUF_STATE_DEQUEUED)