]> git.baikalelectronics.ru Git - kernel.git/commitdiff
video: fbdev: atyfb: remove set but not used variable 'mach64RefFreq'
authoryu kuai <yukuai3@huawei.com>
Mon, 20 Jan 2020 06:33:27 +0000 (14:33 +0800)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 2 Mar 2020 15:32:12 +0000 (16:32 +0100)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/aty/mach64_gx.c: In function ‘aty_var_to_pll_8398’:
drivers/video/fbdev/aty/mach64_gx.c:621:36: warning: variable
‘mach64RefFreq’ set but not used [-Wunused-but-set-variable]

It is never used, and so can be removed.

Signed-off-by: yu kuai <yukuai3@huawei.com>
Cc: zhengbin <zhengbin13@huawei.com>
Cc: yi.zhang <yi.zhang@huawei.com>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200120063327.43548-1-yukuai3@huawei.com
drivers/video/fbdev/aty/mach64_gx.c

index 27cb65fa2ba2a9cb3ccf0b4cd9d63d9f2313ea79..9c37e28fb78b5acabadb73751ff4918f6188c920 100644 (file)
@@ -618,14 +618,13 @@ static int aty_var_to_pll_8398(const struct fb_info *info, u32 vclk_per,
        u32 mhz100;             /* in 0.01 MHz */
        u32 program_bits;
        /* u32 post_divider; */
-       u32 mach64MinFreq, mach64MaxFreq, mach64RefFreq;
+       u32 mach64MinFreq, mach64MaxFreq;
        u16 m, n, k = 0, save_m, save_n, twoToKth;
 
        /* Calculate the programming word */
        mhz100 = 100000000 / vclk_per;
        mach64MinFreq = MIN_FREQ_2595;
        mach64MaxFreq = MAX_FREQ_2595;
-       mach64RefFreq = REF_FREQ_2595;  /* 14.32 MHz */
 
        save_m = 0;
        save_n = 0;