amd/display/amdgpu_dm: delete same check in if condition
authorBernard Zhao <bernard@vivo.com>
Tue, 10 Nov 2020 08:03:13 +0000 (00:03 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:28:00 +0000 (14:28 -0500)
commit5c0e684074d573c75145d1064f92c1be615901ef
tree2618cb9834149af5f1faa3b2a303ea5d31165715
parente5285ac82d7fd5ae0d7b290d4aa08718e4197b2b
amd/display/amdgpu_dm: delete same check in if condition

In function amdgpu_dm_connector_get_modes, drm_edid_is_valid
will check weather (!edid), no need to check again in the if
branch.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c