diff options
author | Srinivasan Shanmugam <[email protected]> | 2023-08-12 20:17:24 +0530 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-08-15 18:08:28 -0400 |
commit | 44fd83e920e2ec0322ad82320ca575445b5e135e (patch) | |
tree | fe4134fad1f911abda35a1ba720705a5d99722f6 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | b73b737f3dd5fb75233645413a73e4eb7da7a41c (diff) |
drm/amdgpu: Replace ternary operator with min() in 'amdgpu_iomem_read'
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2427: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 <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: "Pan, Xinhui" <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions