Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: atyfb: remove set but not used variable 'mach64RefFreq'

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

authored by

yu kuai and committed by
Bartlomiej Zolnierkiewicz
e36cae0d c8c967a7

+1 -2
+1 -2
drivers/video/fbdev/aty/mach64_gx.c
··· 618 618 u32 mhz100; /* in 0.01 MHz */ 619 619 u32 program_bits; 620 620 /* u32 post_divider; */ 621 - u32 mach64MinFreq, mach64MaxFreq, mach64RefFreq; 621 + u32 mach64MinFreq, mach64MaxFreq; 622 622 u16 m, n, k = 0, save_m, save_n, twoToKth; 623 623 624 624 /* Calculate the programming word */ 625 625 mhz100 = 100000000 / vclk_per; 626 626 mach64MinFreq = MIN_FREQ_2595; 627 627 mach64MaxFreq = MAX_FREQ_2595; 628 - mach64RefFreq = REF_FREQ_2595; /* 14.32 MHz */ 629 628 630 629 save_m = 0; 631 630 save_n = 0;