From: Roel Kluin Date: Wed, 4 Mar 2009 19:55:30 +0000 (-0800) Subject: acpi-wmi: unsigned cannot be less than 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da511997d2bbc09f5e39385e0ed209578db07c91;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git acpi-wmi: unsigned cannot be less than 0 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 Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 8a8b377712c9..2f269e117b8f 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device) static int __init acpi_wmi_init(void) { - acpi_status result; + int result; INIT_LIST_HEAD(&wmi_blocks.list);