[alsa-devel] [PATCH] ASoC: core: Initialize err for snd_soc_put_volsw_sx
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
Acked-by:Brian Austin brian.austin@cirrus.com --- sound/soc/soc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 7b1a4fd..a6922bc 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;
On Tue, Apr 03, 2012 at 10:42:32AM -0500, Brian Austin wrote:
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
Acked-by:Brian Austin brian.austin@cirrus.com
This should be Signed-off-by (change looks good).
On Tue, 3 Apr 2012, Mark Brown wrote:
On Tue, Apr 03, 2012 at 10:42:32AM -0500, Brian Austin wrote:
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
Acked-by:Brian Austin brian.austin@cirrus.com
This should be Signed-off-by (change looks good).
doh!
want me to resend?
participants (2)
-
Brian Austin
-
Mark Brown