From 27f1d75921e7273e484cc2fab132d9fcbe9f845d Mon Sep 17 00:00:00 2001 From: Brian Austin Date: Tue, 3 Apr 2012 11:33:50 -0500 Subject: [PATCH] ASoC: core: Initialize err for snd_soc_put_volsw_sx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sound/soc/soc-core.c: In function ‘snd_soc_put_volsw_sx’: sound/soc/soc-core.c:2600: warning: ‘err’ may be used uninitialized in this function Signed-off-by: Brian Austin Signed-off-by: Mark Brown --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 7b1a4fd932d7..a6922bc96184 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2586,7 +2586,7 @@ int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, int max = mc->max; int min = mc->min; int mask = (1 << (fls(min + max) - 1)) - 1; - int err; + int err = 0; unsigned short val, val_mask, val2 = 0; val_mask = mask << shift;