提交 d61975fc 编写于 作者: E Eugene Teo 提交者: Jaroslav Kysela

[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: NEugene Teo <eugene.teo@eugeneteo.net>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 e64d2e36
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册