Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3d3909ffe57174ee10a2ba2cdd75a7c7383f1983
Commit:     3d3909ffe57174ee10a2ba2cdd75a7c7383f1983
Parent:     df86d1149f4b7b77158755b85b85f94e7bade32f
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 23 15:41:44 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:29 2008 +0100

    [ALSA] aoa - fix compile warning
    
    Set a proper error code in the error path of i2sbus_attach_codec().
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 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 a4b0e1a..e6ffea9 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to