From: Axel Lin Date: Wed, 3 Nov 2010 07:04:45 +0000 (+0800) Subject: ASoC: Fix snd_soc_register_dais error handling X-Git-Tag: v2.6.37-rc4~14^2^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46e0079cec40b49fbdb86a088cfd50b250fef47;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed