diff options
author | Dimitry Andric <dim@cvs.openbsd.org> | 2007-02-13 12:52:08 +0000 |
---|---|---|
committer | Dimitry Andric <dim@cvs.openbsd.org> | 2007-02-13 12:52:08 +0000 |
commit | ad94ca0b94f9178bdaf6f64e422778cb7463591a (patch) | |
tree | f9d18a391b0897b9a82ae03406919ad59ed18e0e /sys/arch | |
parent | bba572dba1a737dac928e0a8f6d2c28c2e230ee8 (diff) |
Zap unused local acpi_attached variable, since it has been superseded
by acpi_hasprocfvs.
ok gwk
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/mainbus.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/mainbus.c b/sys/arch/i386/i386/mainbus.c index 5f25912c98e..e0ccf38c273 100644 --- a/sys/arch/i386/i386/mainbus.c +++ b/sys/arch/i386/i386/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.32 2007/01/31 23:30:51 gwk Exp $ */ +/* $OpenBSD: mainbus.c,v 1.33 2007/02/13 12:52:07 dim Exp $ */ /* $NetBSD: mainbus.c,v 1.21 1997/06/06 23:14:20 thorpej Exp $ */ /* @@ -142,9 +142,6 @@ void mainbus_attach(struct device *parent, struct device *self, void *aux) { union mainbus_attach_args mba; -#if NACPI > 0 - int acpi_attached = 0; -#endif extern void (*setperf_setup)(struct cpu_info *); printf("\n"); @@ -167,9 +164,8 @@ mainbus_attach(struct device *parent, struct device *self, void *aux) mba.mba_aaa.aaa_iot = I386_BUS_SPACE_IO; mba.mba_aaa.aaa_memt = I386_BUS_SPACE_MEM; - if (acpi_probe(self, aux, &mba.mba_aaa) && - config_found(self, &mba.mba_aaa, mainbus_print) != NULL) - acpi_attached = 1; + if (acpi_probe(self, aux, &mba.mba_aaa)) + config_found(self, &mba.mba_aaa, mainbus_print); } #endif |