linux_dsm_epyc7002/drivers/gpu/drm/amd/display
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
..
amdgpu_dm drm/amd/display: Use DGAM ROM or RAM 2018-08-27 11:09:58 -05:00
dc drm/amd/display: Remove redundant non-zero and overflow check 2018-08-27 11:10:16 -05:00
include drm/amd/display: add retimer log for HWQ tuning use. 2018-08-27 11:10:15 -05:00
modules drm/amd/display: Add check for num of entries in gamma 2018-08-27 11:09:59 -05:00
Kconfig drm/amd/display: Don't build DCN1 when kcov is enabled 2018-08-21 14:33:59 -05:00
Makefile drm/amd: Remove inclusion of non-existing include directories 2018-02-26 23:09:38 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00