diff options
| author | Srinivasan Shanmugam <[email protected]> | 2023-08-12 14:47:24 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-15 22:08:28 +0000 |
| commit | 44fd83e920e2ec0322ad82320ca575445b5e135e (patch) | |
| tree | fe4134fad1f911abda35a1ba720705a5d99722f6 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | drm/amd/display: Add some missing register definitions (diff) | |
| download | kernel-44fd83e920e2ec0322ad82320ca575445b5e135e.tar.gz kernel-44fd83e920e2ec0322ad82320ca575445b5e135e.zip | |
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 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
