video: fbdev: aty: Fix set but not used warnings in mach64_ct
authorSam Ravnborg <sam@ravnborg.org>
Sat, 28 Nov 2020 22:40:52 +0000 (23:40 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 30 Nov 2020 18:29:19 +0000 (19:29 +0100)
commit055646137637b627b6d1b8f033f7defef14a4c00
tree0de56f78c79e53b0da827bc6ed3e7ad9118455e7
parent580054562651ae4d7f731ba7f625123e0e3d965c
video: fbdev: aty: Fix set but not used warnings in mach64_ct

Fix W=1 warnings about variables assigned but never used.
- One variable is only used when CONFIG_FB_ATY_GENERIC_LCD is defined
  Fix so variable is only defined with CONFIG_FB_ATY_GENERIC_LCD
- Several variables was only assigned by a call to aty_ld_le32().
  Drop the variables but keep the call to aty_ld_le32() as it may
  have unexpected side-effects.

v2:
  - Updated subject (Lee)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-7-sam@ravnborg.org
drivers/video/fbdev/aty/mach64_ct.c