[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1379847947-32366-1-git-send-email-hanjun.guo@linaro.org>
Date: Sun, 22 Sep 2013 19:05:47 +0800
From: Hanjun Guo <hanjun.guo@...aro.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
Jiang Liu <jiang.liu@...wei.com>,
Toshi Kani <toshi.kani@...com>, linux-acpi@...r.kernel.org,
patches@...aro.org, linaro-kernel@...ts.linaro.org,
linaro-acpi@...ts.linaro.org, linux-kernel@...r.kernel.org,
devel@...verdev.osuosl.org, Hanjun Guo <hanjun.guo@...aro.org>
Subject: [PATCH] Staging / quickstart: remove reduplicate if(acpi_disabled) check
In acpi_bus_register_driver(), there is an if (acpi_disabled) check,
so the if(acpi_disabled) before it is reduplicate, remove it.
Signed-off-by: Hanjun Guo <hanjun.guo@...aro.org>
---
drivers/staging/quickstart/quickstart.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c
index 4247d60..9f6ebdb 100644
--- a/drivers/staging/quickstart/quickstart.c
+++ b/drivers/staging/quickstart/quickstart.c
@@ -390,10 +390,6 @@ static int __init quickstart_init(void)
{
int ret;
- /* ACPI Check */
- if (acpi_disabled)
- return -ENODEV;
-
/* ACPI driver register */
ret = acpi_bus_register_driver(&quickstart_acpi_driver);
if (ret)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists