summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tpa6130a2.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-11-03 15:39:00 +0100
committerTakashi Iwai <tiwai@suse.de>2010-11-03 15:50:46 +0100
commit75e3f3137cb570661c2ad3035a139dda671fbb63 (patch)
tree336dcb08e377a7bbc579618eb6ac82f816fca744 /sound/soc/codecs/tpa6130a2.c
parentMerge branch 'for-2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/lr... (diff)
downloadlinux-75e3f3137cb570661c2ad3035a139dda671fbb63.tar.xz
linux-75e3f3137cb570661c2ad3035a139dda671fbb63.zip
ASoC: tpa6130a2: Get rid of compile warning from tpa6130a2_power
Patch "ASoC: tpa6130a2: Fix unbalanced regulator disables" introduced a compiler warning "‘ret’ may be used uninitialized in this function". Initialize ret to zero to get rid of it and making sure that the function does not return any random error code when the code is falling through. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r--sound/soc/codecs/tpa6130a2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 83b5631b13a8..ee4fb201de60 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -119,7 +119,7 @@ static int tpa6130a2_power(int power)
{
struct tpa6130a2_data *data;
u8 val;
- int ret;
+ int ret = 0;
BUG_ON(tpa6130a2_client == NULL);
data = i2c_get_clientdata(tpa6130a2_client);