video: fbdev: sis: Fix set but not used warnings in init.c
authorSam Ravnborg <sam@ravnborg.org>
Sat, 28 Nov 2020 22:40:55 +0000 (23:40 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 30 Nov 2020 19:04:08 +0000 (20:04 +0100)
commit2a74e8682a39d00e04ca278459ae7d7ecbdfb394
tree81f39d880852e2c9924c094560ff805f39ada832
parente8a254362de604f2988f5b843e96b0745246e78a
video: fbdev: sis: Fix set but not used warnings in init.c

Fix "set but not used" warnings by removing the code the assign the
variables and the definition of the variables.
A register read is kept as it may have unknown side-effects.

This removes a lot of unused code - which is always a good thing to do.

v2:
  - Updated subject (Lee)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-10-sam@ravnborg.org
drivers/video/fbdev/sis/init.c