diff options
author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2024-01-05 07:38:58 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-01-16 02:32:03 +0300 |
commit | 8e8272f0dc22e11b2791dc778b07bd66c208d5a8 (patch) | |
tree | c5375b397da6007126e11d44566fa5cf6a89d7aa /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | fac4ebd79fed60e79cccafdad45a2bb8d3795044 (diff) | |
download | linux-8e8272f0dc22e11b2791dc778b07bd66c208d5a8.tar.xz |
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 <peytolee@amd.com>
Cc: Lang Yu <lang.yu@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Peyton Lee <peyton.lee@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions