linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc
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
..
basics drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00
bios drm/amd/display: Set DFS bypass flags for dce110 2018-08-27 11:09:49 -05:00
calcs drm/amd/display: Move PME to function pointer call semantics 2018-08-27 11:09:48 -05:00
core drm/amd/display: Remove redundant non-zero and overflow check 2018-08-27 11:10:16 -05:00
dce drm/amd/display: Add dprefclk value to dce_dccg 2018-08-27 11:10:14 -05:00
dce80 drm/amd/display: Don't share clk source between DP and HDMI 2018-08-06 14:35:43 -05:00
dce100 drm/amd/display: Don't share clk source between DP and HDMI 2018-08-06 14:35:43 -05:00
dce110 drm/amd/display: Add support for toggling DFS bypass 2018-08-27 11:09:50 -05:00
dce112 drm/amd/display: Destroy aux_engines only once 2018-08-06 14:35:24 -05:00
dce120 drm/amd/display: Fix warning observed in mode change on Vega 2018-08-13 17:22:08 -05:00
dcn10 drm/amd/display: fix PIP bugs on Dal3 2018-08-27 11:10:14 -05:00
dml drm/amd/display: fix dml handling of mono8/16 pixel formats 2018-08-27 11:10:15 -05:00
gpio Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
i2caux Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
inc drm/amd/display: fix PIP bugs on Dal3 2018-08-27 11:10:14 -05:00
irq Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
virtual drm/amd/display: Pass signal directly to enable_tmds_output 2018-03-07 16:27:20 -05:00
dc_bios_types.h drm/amd/display: get board layout for edid emulation 2018-07-05 16:38:45 -05:00
dc_ddc_types.h drm/amd/display: Move i2c and aux structs into dc_ddc_types.h 2018-06-15 12:23:38 -05:00
dc_dp_types.h drm/amd/display: Write TEST_EDID_CHECKSUM_WRITE for EDID tests 2018-06-15 12:22:09 -05:00
dc_helper.c drm/amd/display: generic indirect register access 2018-07-13 14:47:33 -05:00
dc_hw_types.h drm/amd/display: Implement custom degamma lut on dcn 2018-08-06 14:35:25 -05:00
dc_link.h drm/amd/display: add vbios table check for enabling dp ss 2018-08-06 15:56:54 -05:00
dc_stream.h drm/amd/display: Refactor SDR cursor boosting in HDR mode 2018-07-16 16:11:49 -05:00
dc_types.h drm/amd/display: Patch for extend time to panel poweron. 2018-07-13 14:49:29 -05:00
dc.h drm/amd/display: fix PIP bugs on Dal3 2018-08-27 11:10:14 -05:00
dm_helpers.h drm/amd/display: Add hook for MST root branch info 2018-07-16 16:11:49 -05:00
dm_pp_smu.h drm/amd/display: Move PME to function pointer call semantics 2018-08-27 11:09:48 -05:00
dm_services_types.h drm/amd/display: Fix a typo in wm_min_memg_clk_in_khz 2018-07-05 16:38:51 -05:00
dm_services.h amdgpu: display: use modern ktime accessors 2018-06-19 13:17:38 -05:00
irq_types.h drm/amd/display: get rid of 32.32 unsigned fixed point 2018-05-18 16:08:21 -05:00
Makefile Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00
os_types.h Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00