aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-01-05 04:38:58 +0000
committerAlex Deucher <[email protected]>2024-01-15 23:32:03 +0000
commit8e8272f0dc22e11b2791dc778b07bd66c208d5a8 (patch)
treec5375b397da6007126e11d44566fa5cf6a89d7aa /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()' (diff)
downloadkernel-8e8272f0dc22e11b2791dc778b07bd66c208d5a8.tar.gz
kernel-8e8272f0dc22e11b2791dc778b07bd66c208d5a8.zip
drm/amdgpu: Fix unsigned comparison with less than zero in vpe_u1_8_from_fraction()
The variables 'numerator' and 'denominator', are unsigned 16-bit integer types, that can never be less than 0. Thus fixing the below: drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:62 vpe_u1_8_from_fraction() warn: unsigned 'numerator' is never less than zero. drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:63 vpe_u1_8_from_fraction() warn: unsigned 'denominator' is never less than zero. Cc: Peyton Lee <[email protected]> Cc: Lang Yu <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Peyton Lee <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions