mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 15:15:28 -04:00
Staging: vc04_services: remove unused variables
the volatile fields of bcm2835_alsa_stream - control and status are not used. $ grep bcm2835_alsa_stream >From the above command all instances we see that all variables of 'bcm2835_alsa_stream' are declared as 'alsa_stream' So search for 'control' wherever we have 'alsa_stream' $ grep -l 'alsa_stream' | xargs grep "control" The above command returns where we don't any usage of 'control' field. which means that there is no usage of these fields. similarly for 'status' we see no usages. Signed-off-by: Keerthi Reddy <keerthigd4990@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d3c2d5289b
commit
e5c9d1107a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user