video: fbdev: via: Fix set but not used warning for mode_crt_table
authorSam Ravnborg <sam@ravnborg.org>
Sat, 28 Nov 2020 22:40:57 +0000 (23:40 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 30 Nov 2020 19:04:24 +0000 (20:04 +0100)
commit9403c18953f787d879e8170256add1a71aed867a
treef3584af061152451d991f67a8928606ec772b3ba
parent1a608758df9eef2237fde69acf6a156e8a8aaa6d
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
drivers/video/fbdev/via/lcd.c