projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df86d11
)
[ALSA] aoa - fix compile warning
author
Takashi Iwai
<tiwai@suse.de>
Fri, 23 Nov 2007 14:41:44 +0000
(15:41 +0100)
committer
Jaroslav 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
index a4b0e1acb11d23edbbfa03def75bbe9aff8cadb8..e6ffea9128c7937d115f6f81be9fde23480c6cdc 100644
(file)
--- 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);