From 126b57f5fde66c440ee3c39716382c9e26d11bf5 Mon Sep 17 00:00:00 2001 From: Vikram Panduranga Date: Mon, 19 Sep 2016 11:22:23 -0700 Subject: [PATCH] ASoC: msmcobalt: Initialize variable to default value Initialize variable to default value before it is used so that variable does not print uninitialized value in debug logs. CRs-Fixed: 1059495 Change-Id: Ic7ed961d8beb16eee35414825ec6ba7d4e95a60d Signed-off-by: Vikram Panduranga --- sound/soc/msm/msmcobalt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/msm/msmcobalt.c b/sound/soc/msm/msmcobalt.c index 63367ce07f5a..3c81550a80b6 100644 --- a/sound/soc/msm/msmcobalt.c +++ b/sound/soc/msm/msmcobalt.c @@ -1541,7 +1541,7 @@ static bool msm_swap_gnd_mic(struct snd_soc_codec *codec) struct snd_soc_card *card = codec->component.card; struct msm_asoc_mach_data *pdata = snd_soc_card_get_drvdata(card); - int value; + int value = 0; if (pdata->us_euro_gpio_p) { value = msm_cdc_pinctrl_get_state(pdata->us_euro_gpio_p);