drm/amd/display: remove set but not used variable 'old_plane_crtc'
authorzhengbin <zhengbin13@huawei.com>
Thu, 14 Nov 2019 12:36:24 +0000 (20:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:51 +0000 (10:12 -0500)
commitd3b65841b31c0192f997e0f9bc64dccbfaa97bcc
tree1384ea39f0f9250a36d5175b70baa32c45f95fc6
parent29bc37b410964e3a0233a048b9a33db13a9e08b6
drm/amd/display: remove set but not used variable 'old_plane_crtc'

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

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c: In function dm_determine_update_type_for_commit:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:6516:36: warning: variable old_plane_crtc set but not used [-Wunused-but-set-variable]

It is introduced by commit a87fa9938749 ("drm/amd/display:
Build stream update and plane updates in dm"), but never used,
so remove it.

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/amdgpu_dm/amdgpu_dm.c