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>
This commit is contained in:
parent
0b6e7220ed
commit
f090386309
|
@ -398,16 +398,15 @@ static int __init quickstart_init_input(void)
|
||||||
static int __init quickstart_init(void)
|
static int __init quickstart_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
acpi_status status = 0;
|
|
||||||
|
|
||||||
/* ACPI Check */
|
/* ACPI Check */
|
||||||
if (acpi_disabled)
|
if (acpi_disabled)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
/* ACPI driver register */
|
/* ACPI driver register */
|
||||||
status = acpi_bus_register_driver(&quickstart_acpi_driver);
|
ret = acpi_bus_register_driver(&quickstart_acpi_driver);
|
||||||
if (status < 0)
|
if (ret)
|
||||||
return -ENODEV;
|
return ret;
|
||||||
|
|
||||||
/* If existing bus with no devices */
|
/* If existing bus with no devices */
|
||||||
if (!quickstart_data.btn_lst) {
|
if (!quickstart_data.btn_lst) {
|
||||||
|
|
Loading…
Reference in New Issue