From: Jarkko Nikula Date: Wed, 3 Nov 2010 14:39:00 +0000 (+0200) Subject: ASoC: tpa6130a2: Get rid of compile warning from tpa6130a2_power X-Git-Tag: firefly_0821_release~7613^2~3382^2~21^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=75e3f3137cb570661c2ad3035a139dda671fbb63;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Takashi Iwai --- 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);