diff options
| author | Yang Li <[email protected]> | 2023-05-31 10:02:38 +0800 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2023-06-08 17:37:51 +0100 |
| commit | de416a9f91f330cf764c9d46bb5faac844f4e9ac (patch) | |
| tree | c3fd07fe6467f488554fcb6c226e0b2138677cd8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | 3f80ba4444dc004f5db473439c2f80837cbe85f6 (diff) | |
leds: cht-wcove: Fix an unsigned comparison which can never be negative
The return value from the call to cht_wc_leds_find_freq() is int.
However, the return value is being assigned to an unsigned
int variable 'ctrl', so making it an int.
Eliminate the following warning:
drivers/leds/leds-cht-wcove.c:236 cht_wc_leds_set_effect() warn: unsigned 'ctrl' is never less than zero.
Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5341
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions