mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
[ALSA] Fix gus_pcm dereference before NULL
Modules: GUS Library The NULL check of substream is simply superfluous. It is guaranteed to receive non-NULL substream. Thanks Takashi. Coverity bug #861 Signed-off-by: Eugene Teo <eugene.teo@eugeneteo.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e64d2e3623
commit
d61975fc6b
1 changed files with 0 additions and 2 deletions
|
@ -114,8 +114,6 @@ static void snd_gf1_pcm_trigger_up(struct snd_pcm_substream *substream)
|
|||
unsigned char pan;
|
||||
unsigned int voice;
|
||||
|
||||
if (substream == NULL)
|
||||
return;
|
||||
spin_lock_irqsave(&pcmp->lock, flags);
|
||||
if (pcmp->flags & SNDRV_GF1_PCM_PFLG_ACTIVE) {
|
||||
spin_unlock_irqrestore(&pcmp->lock, flags);
|
||||
|
|
Loading…
Reference in a new issue