summaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorHans Verkuil2019-01-31 15:06:07 +0100
committerMauro Carvalho Chehab2019-02-07 17:47:58 +0100
commitd88937624351202e5997fd21ae34e35c74a1abf2 (patch)
treeec9ee9333ba5819a8a6a8f54d5480833885ce1a4 /drivers/media/common
parentmedia: vim2m: allow setting the default transaction time via parameter (diff)
downloadkernel-qcow2-linux-d88937624351202e5997fd21ae34e35c74a1abf2.tar.gz
kernel-qcow2-linux-d88937624351202e5997fd21ae34e35c74a1abf2.tar.xz
kernel-qcow2-linux-d88937624351202e5997fd21ae34e35c74a1abf2.zip
media: videobuf2: remove unused variable
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>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/videobuf2/videobuf2-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobuf2/videobuf2-core.c
index e07b6bdb6982..34cc87ca8d59 100644
--- a/drivers/media/common/videobuf2/videobuf2-core.c
+++ b/drivers/media/common/videobuf2/videobuf2-core.c
@@ -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)