]> err.no Git - linux-2.6/commit
[ALSA] aoa: fix up i2sbus_attach_codec
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 5 Oct 2006 13:08:23 +0000 (15:08 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 9 Feb 2007 08:00:09 +0000 (09:00 +0100)
commitd595ee7e0162ae66faa8c4c7d8c2069b40d64fed
tree91c1abaaee1b3498b031ea2142bd80456f20e702
parent73e85fe8452b950b93cfb61377f749e9b15437fb
[ALSA] aoa: fix up i2sbus_attach_codec

This patch changes i2sbus_attach_codec to implement a proper error handling
strategy using labels to jump to the right part. Since it has an elaborate
set-up sequence it also needs that tear-down, which I had hard-coded
inbetween all the checks. This increases readability and should reduce .text
size as well.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/aoa/soundbus/i2sbus/i2sbus-pcm.c