diff options
| author | Leo (Sunpeng) Li <[email protected]> | 2018-08-01 10:20:53 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-08-27 11:10:16 -0500 |
| commit | 56780940389a344a949d53ed7be77012a20ced7a (patch) | |
| tree | 268645cc3462fcf33c1d3fdc3317a3ec71e47cbc /tools/perf/scripts/python/netdev-times.py | |
| parent | 2f14bc8968e3d97fc46bb464045d0fa8fbd2b013 (diff) | |
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 <[email protected]>
Reviewed-by: Mikita Lipski <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions