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

video: fbdev: via: Fix set but not used warning for mode_crt_table

Fix warning by deleting the variable. The function call
viafb_get_best_mode() was verified to have no side-effects,
and thus could be dropped too.

v2:
- Update subject (Lee)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-12-sam@ravnborg.org

+1 -3
+1 -3
drivers/video/fbdev/via/lcd.c
··· 537 537 u32 clock; 538 538 struct via_display_timing timing; 539 539 struct fb_var_screeninfo panel_var; 540 - const struct fb_videomode *mode_crt_table, *panel_crt_table; 540 + const struct fb_videomode *panel_crt_table; 541 541 542 542 DEBUG_MSG(KERN_INFO "viafb_lcd_set_mode!!\n"); 543 - /* Get mode table */ 544 - mode_crt_table = viafb_get_best_mode(set_hres, set_vres, 60); 545 543 /* Get panel table Pointer */ 546 544 panel_crt_table = viafb_get_best_mode(panel_hres, panel_vres, 60); 547 545 viafb_fill_var_timing_info(&panel_var, panel_crt_table);