linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Staging / quickstart: remove reduplicate if(acpi_disabled) check
@ 2013-09-22 11:05 Hanjun Guo
  2013-09-25 23:50 ` Toshi Kani
  0 siblings, 1 reply; 2+ messages in thread
From: Hanjun Guo @ 2013-09-22 11:05 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: devel, linaro-kernel, Toshi Kani, Jiang Liu, patches, linaro-acpi,
	linux-kernel, Rafael J. Wysocki, linux-acpi, Hanjun Guo

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@linaro.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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-25 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-22 11:05 [PATCH] Staging / quickstart: remove reduplicate if(acpi_disabled) check Hanjun Guo
2013-09-25 23:50 ` Toshi Kani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).