]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: omapfb: lcd_ams_delta: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Apr 2022 21:18:51 +0000 (23:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 21 Apr 2022 13:00:27 +0000 (15:00 +0200)
commit61cef16c9da99cc90991bea660338405f57d6762
tree2b136c4d5a80390c6c90d99557043e8b1ec8985d
parent6d94017b7b59bab528be97be158d0d602982e3a6
video: fbdev: omapfb: lcd_ams_delta: fix unused variable warning

A recent cleanup patch removed the only reference to a local variable
in some configurations.

Move the variable into the one block it is still used in, inside
of an #ifdef, to avoid this warning.

Fixes: 0b217751a7f2 ("video: fbdev: omapfb: lcd_ams_delta: Make use of the helper function dev_err_probe()")
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/video/fbdev/omap/lcd_ams_delta.c