diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-10-21 21:31:11 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-10-21 21:31:11 +0000 |
commit | a425ed391606e86ee99ace9cc985706a92d56a25 (patch) | |
tree | 2ba563238711328fa26584da6969e73c16834466 /sys | |
parent | 1a9c9a637b46e3d38d63bdece9871c04a886b522 (diff) |
style nits.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/ioapic.c | 7 | ||||
-rw-r--r-- | sys/arch/i386/i386/ioapic.c | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/ioapic.c b/sys/arch/amd64/amd64/ioapic.c index 7d401e5e045..b4b03a9b90c 100644 --- a/sys/arch/amd64/amd64/ioapic.c +++ b/sys/arch/amd64/amd64/ioapic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioapic.c,v 1.14 2008/09/15 19:19:45 kettenis Exp $ */ +/* $OpenBSD: ioapic.c,v 1.15 2008/10/21 21:31:10 brad Exp $ */ /* $NetBSD: ioapic.c,v 1.6 2003/05/15 13:30:31 fvdl Exp $ */ /*- @@ -350,7 +350,7 @@ ioapic_attach(struct device *parent, struct device *self, void *aux) sc->sc_pins = malloc(sizeof(struct ioapic_pin) * sc->sc_apic_sz, M_DEVBUF, M_WAITOK); - for (i=0; i<sc->sc_apic_sz; i++) { + for (i = 0; i < sc->sc_apic_sz; i++) { sc->sc_pins[i].ip_next = NULL; sc->sc_pins[i].ip_map = NULL; sc->sc_pins[i].ip_vector = 0; @@ -493,9 +493,8 @@ ioapic_hwunmask(struct pic *pic, int pin) struct ioapic_softc *sc = (struct ioapic_softc *)pic; u_long flags; - if (ioapic_cold) { + if (ioapic_cold) return; - } flags = ioapic_lock(sc); redlo = ioapic_read_ul(sc, IOAPIC_REDLO(pin)); redlo &= ~IOAPIC_REDLO_MASK; diff --git a/sys/arch/i386/i386/ioapic.c b/sys/arch/i386/i386/ioapic.c index fe673d2588d..bc365af19b2 100644 --- a/sys/arch/i386/i386/ioapic.c +++ b/sys/arch/i386/i386/ioapic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioapic.c,v 1.17 2008/10/05 16:57:36 kettenis Exp $ */ +/* $OpenBSD: ioapic.c,v 1.18 2008/10/21 21:31:10 brad Exp $ */ /* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */ /*- @@ -298,7 +298,7 @@ ioapic_attach(struct device *parent, struct device *self, void *aux) sc->sc_pins = malloc(sizeof(struct ioapic_pin) * sc->sc_apic_sz, M_DEVBUF, M_WAITOK); - for (i=0; i<sc->sc_apic_sz; i++) { + for (i = 0; i < sc->sc_apic_sz; i++) { sc->sc_pins[i].ip_handler = NULL; sc->sc_pins[i].ip_next = NULL; sc->sc_pins[i].ip_map = NULL; @@ -541,7 +541,7 @@ ioapic_enable(void) if (mp_verbose) printf("%s: enabling\n", sc->sc_dev.dv_xname); - for (p=0; p<sc->sc_apic_sz; p++) { + for (p = 0; p < sc->sc_apic_sz; p++) { maxlevel = 0; /* magic */ minlevel = 0xff; /* magic */ |