aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-08-12 20:17:24 +0530
committerAlex Deucher <[email protected]>2023-08-15 18:08:28 -0400
commit44fd83e920e2ec0322ad82320ca575445b5e135e (patch)
treefe4134fad1f911abda35a1ba720705a5d99722f6 /lib/test_fortify/write_overflow-strncpy-src.c
parentb73b737f3dd5fb75233645413a73e4eb7da7a41c (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