Skip to contentSkip to conversation

media: vb2: remove unused variable i

PATCH In review Colin King 2 participants 2 messages Feb 1, 2019 – Feb 2, 2019

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 media: vb2: remove unused variable i

From: Colin Ian King <[email protected]>

Variable i is declared and never used. Fix this by removing it.

---
 drivers/media/common/videobuf2/videobuf2-core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/common/videobuf2/videobuf2-core.c +0 -1
index e07b6bdb6982..34cc87ca8d59 100644
@@ -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)
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · Colin King

From: Colin Ian King <[email protected]>

Variable i is declared and never used. Fix this by removing it.

A fix for this is already pending in a pull request.

Regards,

Hans

Quoted 19 lines
---
 drivers/media/common/videobuf2/videobuf2-core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/common/videobuf2/videobuf2-core.c +0 -1
index e07b6bdb6982..34cc87ca8d59 100644
@@ -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)