diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-10 07:42:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 14:48:09 -0700 |
commit | f0903863099668d6b03c7ea90b2e58a7ad1be6a3 (patch) | |
tree | 842db8fb3e5ea67f059a015f1616d7af4f21f648 /drivers | |
parent | 0b6e7220ed2be6e40bbda4eeb2b9c397008f2cef (diff) | |
download | op-kernel-dev-f0903863099668d6b03c7ea90b2e58a7ad1be6a3.zip op-kernel-dev-f0903863099668d6b03c7ea90b2e58a7ad1be6a3.tar.gz |
Staging: quickstart: acpi_status is unsigned
acpi_bus_register_driver() returns an int, not acpi_status. It returns
zero on success and negative error codes on failure, but acpi_status is
unsigned. We can just use "ret" here.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/quickstart/quickstart.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index 6612247..33c09fa 100644 --- a/drivers/staging/quickstart/quickstart.c +++ b/drivers/staging/quickstart/quickstart.c @@ -398,16 +398,15 @@ static int __init quickstart_init_input(void) static int __init quickstart_init(void) { int ret; - acpi_status status = 0; /* ACPI Check */ if (acpi_disabled) return -ENODEV; /* ACPI driver register */ - status = acpi_bus_register_driver(&quickstart_acpi_driver); - if (status < 0) - return -ENODEV; + ret = acpi_bus_register_driver(&quickstart_acpi_driver); + if (ret) + return ret; /* If existing bus with no devices */ if (!quickstart_data.btn_lst) { |