diff options
author | Leo (Sunpeng) Li <sunpeng.li@amd.com> | 2018-08-01 17:20:53 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 19:10:16 +0300 |
commit | 56780940389a344a949d53ed7be77012a20ced7a (patch) | |
tree | 268645cc3462fcf33c1d3fdc3317a3ec71e47cbc /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | 2f14bc8968e3d97fc46bb464045d0fa8fbd2b013 (diff) | |
download | linux-56780940389a344a949d53ed7be77012a20ced7a.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions