mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
[ALSA] aoa - fix compile warning
Set a proper error code in the error path of i2sbus_attach_codec(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
df86d1149f
commit
3d3909ffe5
|
|
@ -996,6 +996,7 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
|
|||
if (dev->pcm->card != card) {
|
||||
printk(KERN_ERR
|
||||
"Can't attach same bus to different cards!\n");
|
||||
err = -EINVAL;
|
||||
goto out_put_ci_module;
|
||||
}
|
||||
err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user