]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: remove set but not used variable 'bpc'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 12 Nov 2019 02:10:50 +0000 (10:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:46 +0000 (15:29 -0500)
commit025916c914d1efe1e077759d34e4bde25f10ae80
treedefd0df5ad98833febfef7f53c96b85bbdc6de05
parent8c27a0c451803ce75a9027bac5138582cee5c335
drm/amd/display: remove set but not used variable 'bpc'

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

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c: In function get_pbn_from_timing:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2364:11: warning:
 variable bpc set but not used [-Wunused-but-set-variable]

It is not used since commit e49f69363adf ("drm/amd/display: use
proper formula to calculate bandwidth from timing"), this also
remove get_color_depth(), which is only used here.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c