diff options
author | 2003-06-23 19:47:03 +0000 | |
---|---|---|
committer | 2003-06-23 19:47:03 +0000 | |
commit | 5d5bd1129fedc079cc57253efeff914e44f455f1 (patch) | |
tree | c0de022517fa138c2e8a08873ea90e050cb8b7ea | |
parent | Fix a typo in my last commit and convert file "-" to /dev/stdin like (diff) | |
download | wireguard-openbsd-5d5bd1129fedc079cc57253efeff914e44f455f1.tar.xz wireguard-openbsd-5d5bd1129fedc079cc57253efeff914e44f455f1.zip |
no need to check nintr late in the code... it's verified pretty early
-rw-r--r-- | sys/arch/sparc64/dev/stp_sbus.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/sparc64/dev/stp_sbus.c b/sys/arch/sparc64/dev/stp_sbus.c index a019a21947d..ff6173e5a2c 100644 --- a/sys/arch/sparc64/dev/stp_sbus.c +++ b/sys/arch/sparc64/dev/stp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stp_sbus.c,v 1.1 2003/06/23 09:28:00 miod Exp $ */ +/* $OpenBSD: stp_sbus.c,v 1.2 2003/06/23 19:47:03 jason Exp $ */ /* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */ /*- @@ -165,13 +165,11 @@ stpattach(parent, self, aux) * The higher level we use for status change interrupts; * the lower level for PC card I/O. */ - if (sa->sa_nintr != 0) { - bus_intr_establish(sa->sa_bustag, sa->sa_intr[1].sbi_pri, - IPL_NONE, 0, stp4020_statintr, sc); + bus_intr_establish(sa->sa_bustag, sa->sa_intr[1].sbi_pri, + IPL_NONE, 0, stp4020_statintr, sc); - bus_intr_establish(sa->sa_bustag, sa->sa_intr[0].sbi_pri, - IPL_NONE, 0, stp4020_iointr, sc); - } + bus_intr_establish(sa->sa_bustag, sa->sa_intr[0].sbi_pri, + IPL_NONE, 0, stp4020_iointr, sc); stpattach_common(sc, sa->sa_frequency); } |