diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-06-23 19:47:04 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-06-23 19:47:04 +0000 |
commit | bea935afebd6239248b7d9e8658a6c7b3c36c22d (patch) | |
tree | 9f87a6186add718bcdadfdea1d0a9dbf2135daad /sys/arch/sparc64 | |
parent | b9cceccba2077a4c35d34fe723aaf261c585678b (diff) |
no need to check nintr late in the code... it's verified pretty early
Diffstat (limited to 'sys/arch/sparc64')
-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); } |