]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita96ef97d6b4359592515c2b884d018c09d86e8dd
tree2618cb9834149af5f1faa3b2a303ea5d31165715
parent3bb9962d770b133c2c1eec57bcea37469bfe58aa
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