]> git.baikalelectronics.ru Git - kernel.git/commit
atyfb: hide unused variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 12 Jul 2017 16:28:10 +0000 (18:28 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 12 Jul 2017 16:28:10 +0000 (18:28 +0200)
commite4c6bbc148790370563cd67c85cd3f718ff50594
treeaf84848008d16ea1406d6dbd02488955fea06a09
parent6f3e48adcefaae103e27db8b054673f30e713c5c
atyfb: hide unused variable

The vdisplay variable is now only accessed inside of an #ifdef, producing
a harmless warning:

drivers/video/fbdev/aty/atyfb_base.c: In function 'aty_var_to_crtc':
drivers/video/fbdev/aty/atyfb_base.c:805:19: error: unused variable 'vdisplay' [-Werror=unused-variable]

This moves the declaration into the ifdef as well.

Fixes: be3a073f150d ("video: fbdev: aty: remove useless variable assignments in aty_var_to_crtc()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/aty/atyfb_base.c