Re: [PATCH] atyfb: hide unused variable

From: Bartlomiej Zolnierkiewicz
Date: Wed Jul 12 2017 - 12:31:39 EST


On Monday, July 10, 2017 01:12:46 PM Arnd Bergmann wrote:
> 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: dd7d958ae912 ("video: fbdev: aty: remove useless variable assignments in aty_var_to_crtc()")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Patch queued for 4.13, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics