]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
acpi-wmi: unsigned cannot be less than 0
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 4 Mar 2009 19:55:30 +0000 (11:55 -0800)
committerLen Brown <len.brown@intel.com>
Mon, 16 Mar 2009 04:38:24 +0000 (00:38 -0400)
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 <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/wmi.c

index 8a8b377712c972e726a8f53f6026a8322a49f7a0..2f269e117b8fb51fb9af361f00ba89007133b3a8 100644 (file)
@@ -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);