[media-next] media: vb2: remove unused variable i
diff mbox series

Message ID 20190201180642.14328-1-colin.king@canonical.com
State New
Headers show
Series
  • [media-next] media: vb2: remove unused variable i
Related show

Commit Message

Colin King Feb. 1, 2019, 6:06 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

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

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/media/common/videobuf2/videobuf2-core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Hans Verkuil Feb. 2, 2019, 7:40 a.m. UTC | #1
On 02/01/2019 07:06 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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

> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/media/common/videobuf2/videobuf2-core.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> 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)
>

Patch
diff mbox series

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)