All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: media: vino: vino: Removed variables that is never used
@ 2015-01-28 22:47 Rickard Strandqvist
  2015-02-02 13:21 ` Hans Verkuil
  0 siblings, 1 reply; 2+ messages in thread
From: Rickard Strandqvist @ 2015-01-28 22:47 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Greg Kroah-Hartman
  Cc: Rickard Strandqvist, Hans Verkuil, Laurent Pinchart, Lad,
	Prabhakar, linux-media, devel, linux-kernel

Variable ar assigned a value that is never used.
I have also removed all the code that thereby serves no purpose.

This was found using a static code analysis program called cppcheck

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 drivers/staging/media/vino/vino.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/media/vino/vino.c b/drivers/staging/media/vino/vino.c
index 2c85357..f43c1ea 100644
--- a/drivers/staging/media/vino/vino.c
+++ b/drivers/staging/media/vino/vino.c
@@ -2375,7 +2375,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id)
 		next_4_desc = vino->a.next_4_desc;
 	unsigned int line_count_2,
 		page_index_2,
-		field_counter_2,
 		start_desc_tbl_2,
 		next_4_desc_2;
 #endif
@@ -2421,7 +2420,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id)
 #ifdef VINO_DEBUG_INT
 			line_count_2 = vino->a.line_count;
 			page_index_2 = vino->a.page_index;
-			field_counter_2 = vino->a.field_counter;
 			start_desc_tbl_2 = vino->a.start_desc_tbl;
 			next_4_desc_2 = vino->a.next_4_desc;
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: media: vino: vino: Removed variables that is never used
  2015-01-28 22:47 [PATCH] staging: media: vino: vino: Removed variables that is never used Rickard Strandqvist
@ 2015-02-02 13:21 ` Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2015-02-02 13:21 UTC (permalink / raw)
  To: Rickard Strandqvist, Mauro Carvalho Chehab, Greg Kroah-Hartman
  Cc: Hans Verkuil, Laurent Pinchart, Lad, Prabhakar, linux-media,
	devel, linux-kernel

On 01/28/2015 11:47 PM, Rickard Strandqvist wrote:
> Variable ar assigned a value that is never used.
> I have also removed all the code that thereby serves no purpose.
> 
> This was found using a static code analysis program called cppcheck

FYI: I've dropped this patch since the vino driver will be removed in 3.20.

Regards.

	Hans

> 
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
>  drivers/staging/media/vino/vino.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/staging/media/vino/vino.c b/drivers/staging/media/vino/vino.c
> index 2c85357..f43c1ea 100644
> --- a/drivers/staging/media/vino/vino.c
> +++ b/drivers/staging/media/vino/vino.c
> @@ -2375,7 +2375,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id)
>  		next_4_desc = vino->a.next_4_desc;
>  	unsigned int line_count_2,
>  		page_index_2,
> -		field_counter_2,
>  		start_desc_tbl_2,
>  		next_4_desc_2;
>  #endif
> @@ -2421,7 +2420,6 @@ static irqreturn_t vino_interrupt(int irq, void *dev_id)
>  #ifdef VINO_DEBUG_INT
>  			line_count_2 = vino->a.line_count;
>  			page_index_2 = vino->a.page_index;
> -			field_counter_2 = vino->a.field_counter;
>  			start_desc_tbl_2 = vino->a.start_desc_tbl;
>  			next_4_desc_2 = vino->a.next_4_desc;
>  
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-02 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 22:47 [PATCH] staging: media: vino: vino: Removed variables that is never used Rickard Strandqvist
2015-02-02 13:21 ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.