All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: vc04_services: remove unused variables control and status
@ 2017-09-28  8:49 Keerthi Reddy
  2017-09-28  9:09 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Keerthi Reddy @ 2017-09-28  8:49 UTC (permalink / raw)
  To: eric, stefan.wahren, outreachy-kernel

the volatile variables control, status are not
used. Delete them.

Signed-off-by: Keerthi Reddy <keerthigd4990@gmail.com>
---
 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
index 379604d..f1e43e4 100644
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
@@ -123,8 +123,6 @@ struct bcm2835_alsa_stream {
 	struct snd_pcm_indirect pcm_indirect;
 
 	spinlock_t lock;
-	volatile unsigned int control;
-	volatile unsigned int status;
 
 	int open;
 	int running;
-- 
2.7.4



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

* Re: [Outreachy kernel] [PATCH] Staging: vc04_services: remove unused variables control and status
  2017-09-28  8:49 [PATCH] Staging: vc04_services: remove unused variables control and status Keerthi Reddy
@ 2017-09-28  9:09 ` Julia Lawall
  0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2017-09-28  9:09 UTC (permalink / raw)
  To: Keerthi Reddy; +Cc: eric, stefan.wahren, outreachy-kernel



On Thu, 28 Sep 2017, Keerthi Reddy wrote:

> the volatile variables control, status are not
> used. Delete them.

It could be useful to give some information about how you have checked
this.  Simply compiling the directory might not be good enough, if there
are uses under ifdefs.  Grep could be a reasonable solution.

Also, I would say that these are fields rather than variables, as they are
part of a structure rather than variables in a function.

julia

>
> Signed-off-by: Keerthi Reddy <keerthigd4990@gmail.com>
> ---
>  drivers/staging/vc04_services/bcm2835-audio/bcm2835.h | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
> index 379604d..f1e43e4 100644
> --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
> +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
> @@ -123,8 +123,6 @@ struct bcm2835_alsa_stream {
>  	struct snd_pcm_indirect pcm_indirect;
>
>  	spinlock_t lock;
> -	volatile unsigned int control;
> -	volatile unsigned int status;
>
>  	int open;
>  	int running;
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170928084954.GA4170%40manoharreddy.
> For more options, visit https://groups.google.com/d/optout.
>


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

end of thread, other threads:[~2017-09-28  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28  8:49 [PATCH] Staging: vc04_services: remove unused variables control and status Keerthi Reddy
2017-09-28  9:09 ` [Outreachy kernel] " Julia Lawall

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.