Skip to content

Commit e36cae0

Browse files
YuKuai-huaweibzolnier
authored andcommitted
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 <[email protected]> Cc: zhengbin <[email protected]> Cc: yi.zhang <[email protected]> [b.zolnierkie: minor patch summary fixup] Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c8c967a commit e36cae0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/video/fbdev/aty/mach64_gx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,13 @@ static int aty_var_to_pll_8398(const struct fb_info *info, u32 vclk_per,
618618
u32 mhz100; /* in 0.01 MHz */
619619
u32 program_bits;
620620
/* u32 post_divider; */
621-
u32 mach64MinFreq, mach64MaxFreq, mach64RefFreq;
621+
u32 mach64MinFreq, mach64MaxFreq;
622622
u16 m, n, k = 0, save_m, save_n, twoToKth;
623623

624624
/* Calculate the programming word */
625625
mhz100 = 100000000 / vclk_per;
626626
mach64MinFreq = MIN_FREQ_2595;
627627
mach64MaxFreq = MAX_FREQ_2595;
628-
mach64RefFreq = REF_FREQ_2595; /* 14.32 MHz */
629628

630629
save_m = 0;
631630
save_n = 0;

0 commit comments

Comments
 (0)