drm/amd/display: remove unused variable 'dc'
authorPu Lehui <pulehui@huawei.com>
Thu, 17 Jun 2021 01:16:32 +0000 (09:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Jun 2021 21:14:30 +0000 (17:14 -0400)
commit23549470eaf9f7c0897822ad2d06118b2dfccbd1
treebce182759a191bcd7c8e2f0d6aefbd0658c0667a
parent85019b19d484b0616dd7b68ffbca2e01d28b5c8b
drm/amd/display: remove unused variable 'dc'

GCC reports the following warning with W=1:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13:
warning:
 variable ‘dc’ set but not used [-Wunused-but-set-variable]
    70 |  struct dc *dc = NULL;
       |             ^~

This variable is not used in function, this commit remove it to
fix the warning.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c