diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-24 09:24:37 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-24 09:24:37 +0000 |
commit | 45d14d9363aa78c961a2071458e65c589926bfb9 (patch) | |
tree | a9c2cbd66472e729428eb06686fe4ef050186207 /sys/dev | |
parent | 677d01e2583197003d44e3f93b034bbdec27d2ed (diff) |
Replace a home-grown splassert-like thing with the real stuff.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/wdc.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 9b5df2b6e33..a00c1c2917d 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.49 2002/05/03 09:18:46 gluk Exp $ */ +/* $OpenBSD: wdc.c,v 1.50 2002/05/24 09:24:36 art Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ @@ -895,18 +895,7 @@ wdcstart(chp) { struct wdc_xfer *xfer; -#ifdef WDC_DIAGNOSTIC - int spl1, spl2; - - spl1 = splbio(); - spl2 = splbio(); - if (spl2 != spl1) { - printf("wdcstart: not at splbio()\n"); - panic("wdcstart"); - } - splx(spl2); - splx(spl1); -#endif /* WDC_DIAGNOSTIC */ + splassert(IPL_BIO); /* is there a xfer ? */ if ((xfer = chp->ch_queue->sc_xfer.tqh_first) == NULL) { |