• Arnd Bergmann's avatar
    atyfb: hide unused variable · fa43bc2a
    Arnd Bergmann authored
    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: dd7d958a ("video: fbdev: aty: remove useless variable assignments in aty_var_to_crtc()")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    fa43bc2a
atyfb_base.c 108 KB