Skip to content

Commit

Permalink
acpi-wmi: unsigned cannot be less than 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Len Brown committed Mar 16, 2009
1 parent b36a50f commit da51199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit da51199

Please sign in to comment.