OSDN Git Service

drm/amd/display: Remove set but not used variable 'pixel_width'
authorzhengbin <zhengbin13@huawei.com>
Sat, 5 Oct 2019 02:44:35 +0000 (10:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2019 20:10:45 +0000 (15:10 -0500)
commitadda1367a862e70be1d5ac6b845bd1d8c09af9a4
treebfe8a52f168ccb008e574cebd89427148e40a147
parent2b0619c159e99c67a14cbf1851a19b915a74d7e8
drm/amd/display: Remove set but not used variable 'pixel_width'

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

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c: In function dpp2_get_optimal_number_of_taps:
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c:359:11: warning: variable pixel_width set but not used [-Wunused-but-set-variable]

It is not used since commit f7de96ee8b5f ("drm/amd/display:
Add DCN2 DPP")

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c