linux/drivers/gpu/drm/amd
Leo (Sunpeng) Li 5678094038 drm/amd/display: Remove redundant non-zero and overflow check
[Why]
Unsigned int is guaranteed to be >= 0, and read_channel_reply checks for
overflows. read_channel_reply also returns -1 on error, which is what
dc_link_aux_transfer is expected to return on error.

[How]
Remove the if-statement. Return result of read_channel_reply directly.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Mikita Lipski <Mikita.Lipski@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-08-27 11:10:16 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amdgpu: Cancel gfx off delay work when driver fini/suspend 2018-08-27 11:10:12 -05:00
amdkfd drm/amdkfd: Call kfd2kgd.set_compute_idle 2018-07-16 19:10:37 -04:00
display drm/amd/display: Remove redundant non-zero and overflow check 2018-08-27 11:10:16 -05:00
include drm/amdgpu: add system interrupt mask for jrbc 2018-08-27 11:10:10 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amdgpu/powerplay: check vrefresh when when changing displays 2018-08-27 11:10:12 -05:00