summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-05 16:15:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-05 16:15:00 +0000
commit488bb353e9e758841d2843c8d56750d93c25f686 (patch)
tree25553adc0facda6f2599e4dbd55d9de33a592a7e /sys/dev/acpi
parent712c467083944982ffda57dd53b1c06c4ac5e30e (diff)
delete a bit of #if 0 code
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpi.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index bb0bf640da9..42e30f270e0 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.214 2010/10/05 16:14:37 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.215 2010/10/05 16:14:59 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1578,17 +1578,9 @@ acpi_foundprw(struct aml_node *node, void *arg)
struct gpe_block *
acpi_find_gpe(struct acpi_softc *sc, int gpe)
{
-#if 1
if (gpe >= sc->sc_lastgpe)
return NULL;
return &sc->gpe_table[gpe];
-#else
- SIMPLEQ_FOREACH(pgpe, &sc->sc_gpes, gpe_link) {
- if (gpe >= pgpe->start && gpe <= (pgpe->start+7))
- return &pgpe->table[gpe & 7];
- }
- return NULL;
-#endif
}
void