]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: bcm2835-audio: Kill unused spinlock
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:39 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:14:59 +0000 (11:14 +0200)
The alsa_stream->lock is never used.  Kill it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h

index 00c2abab4bba74efd46d3ab73bd7908269a1e4c9..fc1b345d206cd79370c4028e31e1b38f8f7c3f2f 100644 (file)
@@ -128,8 +128,6 @@ static int snd_bcm2835_playback_open_generic(
        alsa_stream->substream = substream;
        alsa_stream->idx = idx;
 
-       spin_lock_init(&alsa_stream->lock);
-
        err = bcm2835_audio_open(alsa_stream);
        if (err) {
                kfree(alsa_stream);
index 2a9f3d6c10dcbcfad93f71dec483ecbeec60abb9..20f5ff1649e6b5fdd2e1114849bb6a1e04c2106d 100644 (file)
@@ -119,8 +119,6 @@ struct bcm2835_alsa_stream {
        struct snd_pcm_substream *substream;
        struct snd_pcm_indirect pcm_indirect;
 
-       spinlock_t lock;
-
        int draining;
 
        int channels;