]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Fix uninitialized variable
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 12:56:24 +0000 (18:26 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 17 Jul 2016 17:19:20 +0000 (10:19 -0700)
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 <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163940
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
sound/soc/codecs/rt5639.c

index 2610b15604e2bb46720ca5b4a2c8743b723437c1..2862ee1e293bff8340b2350e318805b0654c9b10 100644 (file)
@@ -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;