Commit fda767b1 authored by Takashi Iwai's avatar Takashi Iwai Committed by Greg Kroah-Hartman

staging: bcm2835-audio: Drop useless NULL check

alsa_stream->chip can be never NULL.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Tested-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent af19edf7
...@@ -188,7 +188,6 @@ static int snd_bcm2835_playback_close(struct snd_pcm_substream *substream) ...@@ -188,7 +188,6 @@ static int snd_bcm2835_playback_close(struct snd_pcm_substream *substream)
alsa_stream->buffer_size = 0; alsa_stream->buffer_size = 0;
bcm2835_audio_close(alsa_stream); bcm2835_audio_close(alsa_stream);
if (alsa_stream->chip)
alsa_stream->chip->alsa_stream[alsa_stream->idx] = NULL; alsa_stream->chip->alsa_stream[alsa_stream->idx] = NULL;
/* /*
* Do not free up alsa_stream here, it will be freed up by * Do not free up alsa_stream here, it will be freed up by
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment