[PATCH -next] drm/ast: Remove set but not used variable 'bo'

2018-12-10 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/ast/ast_fb.c: In function 'astfb_create': drivers/gpu/drm/ast/ast_fb.c:194:17: warning: variable 'bo' set but not used [-Wunused-but-set-variable] It never used since introduction in commit 312fec1405dd ("drm: Initial KMS driver for

Re: [PATCH -next] drm/ast: Remove set but not used variable 'bo'

2018-12-10 Thread Daniel Vetter
On Sat, Dec 08, 2018 at 08:36:25AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/ast/ast_fb.c: In function 'astfb_create': > drivers/gpu/drm/ast/ast_fb.c:194:17: warning: > variable 'bo' set but not used [-Wunused-but-set-variable] > > It never use