1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/amd/pmf
Yang Li 785c00993d platform/x86/amd/pmf: Fix unsigned comparison with less than zero
The return value from the call to amd_pmf_get_pprof_modes() is int.
However, the return value is being assigned to an unsigned char
variable 'mode', so making 'mode' an int.

silence the warning:
./drivers/platform/x86/amd/pmf/sps.c:183:5-9: WARNING: Unsigned expression compared with zero: mode < 0

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5995
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230727014315.51375-1-yang.lee@linux.alibaba.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-07-31 16:01:58 +02:00
..
acpi.c platform/x86/amd/pmf: Notify OS power slider update 2023-07-25 14:31:25 +02:00
auto-mode.c platform/x86/amd/pmf: Add PMF debug facilities 2023-05-15 15:18:03 +02:00
cnqf.c platform/x86/amd/pmf: Add PMF debug facilities 2023-05-15 15:18:03 +02:00
core.c platform/x86/amd/pmf: Notify OS power slider update 2023-07-25 14:31:25 +02:00
Kconfig platform/x86/amd/pmf: Add PMF acpi debug support 2023-05-15 15:17:31 +02:00
Makefile platform/x86/amd/pmf: Add support for CnQF 2022-09-22 17:42:53 +02:00
pmf.h platform/x86/amd/pmf: Notify OS power slider update 2023-07-25 14:31:25 +02:00
sps.c platform/x86/amd/pmf: Fix unsigned comparison with less than zero 2023-07-31 16:01:58 +02:00