提交 91134859 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] opti93x - Fix a compile warning

Modules: Opti9xx drivers

Fix a gcc-4.1 compile warning regarding uninitialized variables.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 fe25ad8a
......@@ -1349,7 +1349,7 @@ static int snd_opti93x_pcm(struct snd_opti93x *codec, int device, struct snd_pcm
int error;
struct snd_pcm *pcm;
if ((error = snd_pcm_new(codec->card, "OPTi 82C93X", device, 1, 1, &pcm)))
if ((error = snd_pcm_new(codec->card, "OPTi 82C93X", device, 1, 1, &pcm)) < 0)
return error;
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_opti93x_playback_ops);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册