From: Takashi Iwai Date: Fri, 23 Nov 2007 14:41:44 +0000 (+0100) Subject: [ALSA] aoa - fix compile warning X-Git-Tag: v2.6.25-rc1~1127^2~225 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3d3909ffe57174ee10a2ba2cdd75a7c7383f1983;p=linux-2.6-omap-h63xx.git [ALSA] aoa - fix compile warning Set a proper error code in the error path of i2sbus_attach_codec(). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c index a4b0e1acb11..e6ffea9128c 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c +++ b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c @@ -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);