Skip to content

Commit

Permalink
[ALSA] aoa - fix compile warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tiwai authored and perexg committed Jan 31, 2008
1 parent df86d11 commit 3d3909f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d3909f

Please sign in to comment.