diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-03 08:04:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-03 14:08:20 +0100 |
commit | c46e0079cec40b49fbdb86a088cfd50b250fef47 (patch) | |
tree | f63438e618de0262fd503b932cd10a6ca6685d46 /sound/soc/codecs/tpa6130a2.c | |
parent | Merge commit 'v2.6.37-rc1' into for-2.6.37 (diff) | |
download | linux-c46e0079cec40b49fbdb86a088cfd50b250fef47.tar.xz linux-c46e0079cec40b49fbdb86a088cfd50b250fef47.zip |
ASoC: Fix snd_soc_register_dais error handling
kzalloc for dai may fail at any iteration of the for loop,
thus properly unregister already registered DAIs before return error.
The error handling code in snd_soc_register_dais() already ensure all the DAIs
are unregistered before return error, we can remove the error handling code
to unregister DAIs in snd_soc_register_codec().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
0 files changed, 0 insertions, 0 deletions