Skip to content

Commit

Permalink
staging: bcm2835-audio: remove unused semaphores
Browse files Browse the repository at this point in the history
This patch removes unused semaphores alsa_stream->buffers_update_sem
and alsa_stream->control_sem from struct bcm2835_alsa_stream

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Aishwarya Pant authored and Greg Kroah-Hartman committed Mar 7, 2017
1 parent 85fa002 commit d01e631
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ static int snd_bcm2835_playback_open_generic(
alsa_stream->substream = substream;
alsa_stream->idx = idx;

sema_init(&alsa_stream->buffers_update_sem, 0);
sema_init(&alsa_stream->control_sem, 0);
spin_lock_init(&alsa_stream->lock);

err = bcm2835_audio_open(alsa_stream);
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vc04_services/bcm2835-audio/bcm2835.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ struct bcm2835_alsa_stream {
struct snd_pcm_substream *substream;
struct snd_pcm_indirect pcm_indirect;

struct semaphore buffers_update_sem;
struct semaphore control_sem;
spinlock_t lock;
volatile unsigned int control;
volatile unsigned int status;
Expand Down

0 comments on commit d01e631

Please sign in to comment.