]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove set but not used variable 'pixel_width'
authorZheng Bin <zhengbin13@huawei.com>
Thu, 30 Apr 2020 03:40:32 +0000 (11:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2020 20:49:09 +0000 (16:49 -0400)
commit37e425d0c7abd4b389b16a4f23617297fb904118
tree9377d96e52d73ff065e3f36010f953a13d121aba
parent740b6a28413e6d86dde9e8a523f3ea00d38fbd95
drm/amd/display: remove set but not used variable 'pixel_width'

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

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c:137:11: warning: variable ‘pixel_width’ set but not used [-Wunused-but-set-variable]

It is introduced by commit 0bb9a62fd394 ("drm/amdgpu/display:
Add core dc support for DCN"), but never used, so remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c