]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Remove set but not used variable 'fb_offset, fb_depth'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 25 Mar 2019 17:32:17 +0000 (10:32 -0700)
committerDeepak Rawat <drawat@vmware.com>
Mon, 8 Apr 2019 17:29:05 +0000 (10:29 -0700)
commitcd86aaaca173533a26233da5fff7e5d30e75a93b
tree4e9f658205644c230eb85fe771f3452471ef753e
parentb7b17c83e135bd08606bcfe6732b803e1c2fa0d7
drm/vmwgfx: Remove set but not used variable 'fb_offset, fb_depth'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/vmwgfx/vmwgfx_fb.c: In function 'vmw_fb_init':
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:29: warning:
 variable 'fb_offset' set but not used [-Wunused-but-set-variable]

drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:19: warning:
 variable 'fb_depth' set but not used [-Wunused-but-set-variable]

They're not used any more, so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c