Commit 3bdcff70 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: lx6464es: Add a missing error check

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44541Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 265d931a
...@@ -851,6 +851,8 @@ static int __devinit lx_pcm_create(struct lx6464es *chip) ...@@ -851,6 +851,8 @@ static int __devinit lx_pcm_create(struct lx6464es *chip)
/* hardcoded device name & channel count */ /* hardcoded device name & channel count */
err = snd_pcm_new(chip->card, (char *)card_name, 0, err = snd_pcm_new(chip->card, (char *)card_name, 0,
1, 1, &pcm); 1, 1, &pcm);
if (err < 0)
return err;
pcm->private_data = chip; pcm->private_data = chip;
......
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