[ALSA] aoa - fix compile warning
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Nov 2007 14:41:44 +0000 (15:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:29 +0000 (17:29 +0100)
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>
sound/aoa/soundbus/i2sbus/i2sbus-pcm.c

index a4b0e1a..e6ffea9 100644 (file)
@@ -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);