From 114f754947bce386472f0ed9e8bdf64c6d09ca66 Mon Sep 17 00:00:00 2001 From: Joe Korty Date: Wed, 25 May 2016 18:26:24 +0530 Subject: [PATCH] Fix uninitialized variable sound/soc/codecs/rt5639.c: In function 'rt5639_pll_calc': sound/soc/codecs/rt5639.c:2833:19: warning: 'm_t' may be used uninitialized in this function [-Wmaybe-uninitialized] pll_code->m_code = m; Bug 200187768 Change-Id: I86981ef397ff3f8bd0bf80e723d00cb1ca937ef7 Signed-off-by: Joe Korty Signed-off-by: Gaurav Singh Reviewed-on: http://git-master/r/1163940 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu --- sound/soc/codecs/rt5639.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c index 2610b15604e..2862ee1e293 100644 --- a/sound/soc/codecs/rt5639.c +++ b/sound/soc/codecs/rt5639.c @@ -2786,7 +2786,7 @@ static int rt5639_pll_calc(const unsigned int freq_in, const unsigned int freq_out, struct rt5639_pll_code *pll_code) { int max_n = RT5639_PLL_N_MAX, max_m = RT5639_PLL_M_MAX; - int k, n = 0, m = 0, red, n_t, m_t, pll_out, in_t, out_t; + int k, n = 0, m = 0, red, n_t, m_t = 0, pll_out, in_t, out_t; int red_t = abs(freq_out - freq_in); bool bypass = false; -- 2.39.2