summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-02-25 20:14:35 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-02-25 20:14:35 +0000
commitd0a634727df4907f9357d3da62088245d8f668dc (patch)
tree0c12a14c122250af2bfab550d12d1926aa9a4125 /sys
parent4f6c9708227dc808ee56228a2e024eed7d5af671 (diff)
move NULLification to end so it's useful.
ok jason@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/yds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c
index 43764bbbeb4..8631026a42b 100644
--- a/sys/dev/pci/yds.c
+++ b/sys/dev/pci/yds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yds.c,v 1.16 2003/02/20 00:26:17 jason Exp $ */
+/* $OpenBSD: yds.c,v 1.17 2003/02/25 20:14:34 tedu Exp $ */
/* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */
/*
@@ -1595,7 +1595,6 @@ yds_halt_input(addr)
struct yds_softc *sc = addr;
DPRINTF(("yds: yds_halt_input\n"));
- sc->sc_rec.intr = NULL;
if (sc->sc_rec.intr) {
/* Stop the rec slot operation */
YWRITE4(sc, YDS_MAPOF_REC, 0);
@@ -1610,6 +1609,7 @@ yds_halt_input(addr)
bus_dmamap_sync(sc->sc_dmatag, sc->sc_rec.dma->map,
0, sc->sc_rec.length, BUS_DMASYNC_POSTREAD);
}
+ sc->sc_rec.intr = NULL;
return 0;
}