diff mbox

[8/8] acpi: wmi.c: unsigned cannot be less than 0

Message ID 200903041955.n24JtUd9028016@imap1.linux-foundation.org (mailing list archive)
State Accepted
Headers show

Commit Message

Andrew Morton March 4, 2009, 7:55 p.m. UTC
From: Roel Kluin <roel.kluin@gmail.com>

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>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/platform/x86/wmi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff -puN drivers/platform/x86/wmi.c~acpi-wmic-unsigned-cannot-be-less-than-0 drivers/platform/x86/wmi.c
--- a/drivers/platform/x86/wmi.c~acpi-wmic-unsigned-cannot-be-less-than-0
+++ a/drivers/platform/x86/wmi.c
@@ -708,7 +708,7 @@  static int __init acpi_wmi_add(struct ac
 
 static int __init acpi_wmi_init(void)
 {
-	acpi_status result;
+	int result;
 
 	INIT_LIST_HEAD(&wmi_blocks.list);