diff options
author | 2023-08-12 20:20:31 +0530 | |
---|---|---|
committer | 2023-08-15 18:08:30 -0400 | |
commit | b828e1004cce55a078ba7bb11e252c2499793025 (patch) | |
tree | d8973177d4057569bddcc126482250707e36957c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/display: Replace ternary operator with min() in 'dm_helpers_parse_edid_caps' (diff) | |
download | wireguard-linux-b828e1004cce55a078ba7bb11e252c2499793025.tar.xz wireguard-linux-b828e1004cce55a078ba7bb11e252c2499793025.zip |
drm/amdgpu: Replace ternary operator with min() in 'amdgpu_iomem_write'
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2482:16-17: WARNING opportunity for min()
min() macro is defined in include/linux/minmax.h. It avoids multiple
evaluations of the arguments when non-constant and performs strict
type-checking.
Cc: Guchun Chen <guchun.chen@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions