acpi: wmi.c: unsigned cannot be less than 0
Subsystems (2)
PATCH 8/8 acpi: wmi.c: unsigned cannot be less than 0
From: Roel Kluin <[email protected]>
include/linux/pci-acpi.h:74:
typedef u32 acpi_status;
result is unsigned, so an error returned by acpi_bus_register_driver() will not be noticed.
Signed-off-by Roel Kluin <[email protected]>
Cc Len Brown <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/platform/x86/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/wmi.c renamed from drivers/platform/x86/wmi.c~acpi-wmic-unsigned-cannot-be-less-than-0 +1 -1
@@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acstatic int __init acpi_wmi_init (void ) { -acpi_status result; +int result;INIT_LIST_HEAD (&wmi_blocks.list);
_