video: fbdev: aty: Fix set but not used warnings
authorSam Ravnborg <sam@ravnborg.org>
Sat, 28 Nov 2020 22:40:51 +0000 (23:40 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 30 Nov 2020 18:28:35 +0000 (19:28 +0100)
commit580054562651ae4d7f731ba7f625123e0e3d965c
treea67519bd0610c2c6050781291f4e137ec73b3edc
parent288b23719ce0cfa56be33b96a33a44edeef45506
video: fbdev: aty: Fix set but not used warnings

Fix W=1 warnings about variables assigned but never used.

- Drop variables that were set but never used
- Make variable definition conditional on ATARI

v2:
  - Fix m68k build error (kernel test robot)
  - Improve subject (Lee Jones)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reported-by: kernel test robot <lkp@intel.com> # m68k build fix
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Joe Perches <joe@perches.com>
Cc: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Cc: Jason Yan <yanaijie@huawei.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-6-sam@ravnborg.org
drivers/video/fbdev/aty/atyfb_base.c