diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-11-23 09:41:44 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:29 -0500 |
commit | 3d3909ffe57174ee10a2ba2cdd75a7c7383f1983 (patch) | |
tree | 013ef90c4bd54781f00d53c817f63b4d70f17eb0 | |
parent | df86d1149f4b7b77158755b85b85f94e7bade32f (diff) |
[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>
-rw-r--r-- | sound/aoa/soundbus/i2sbus/i2sbus-pcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c index a4b0e1acb11d..e6ffea9128c7 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, | |||
996 | if (dev->pcm->card != card) { | 996 | if (dev->pcm->card != card) { |
997 | printk(KERN_ERR | 997 | printk(KERN_ERR |
998 | "Can't attach same bus to different cards!\n"); | 998 | "Can't attach same bus to different cards!\n"); |
999 | err = -EINVAL; | ||
999 | goto out_put_ci_module; | 1000 | goto out_put_ci_module; |
1000 | } | 1001 | } |
1001 | err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1); | 1002 | err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1); |