diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-06-19 21:43:17 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-06-19 21:43:17 +0000 |
commit | 9eae0d87ce0ae2c665944f7bb0a86a12c706e482 (patch) | |
tree | 02d92ebe8f725248485f0b31b7ce20192f9d408a /sys/dev/usb | |
parent | c4376d1f14f36850dd0d5ea0a54b77c39ba03770 (diff) |
Remove more splbio/splx pairs from around scsi_done() calls.
From Matthew Dempsky.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usscanner.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/usb/usscanner.c b/sys/dev/usb/usscanner.c index 5562951320c..351c9a2fbd6 100644 --- a/sys/dev/usb/usscanner.c +++ b/sys/dev/usb/usscanner.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usscanner.c,v 1.31 2010/03/23 01:57:20 krw Exp $ */ +/* $OpenBSD: usscanner.c,v 1.32 2010/06/19 21:43:16 krw Exp $ */ /* $NetBSD: usscanner.c,v 1.6 2001/01/23 14:04:14 augustss Exp $ */ /* @@ -471,7 +471,6 @@ usscanner_intr_cb(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) { struct usscanner_softc *sc = priv; - int s; DPRINTFN(10, ("usscanner_data_cb status=%d\n", status)); @@ -487,9 +486,7 @@ usscanner_intr_cb(usbd_xfer_handle xfer, usbd_private_handle priv, sc->sc_state = UAS_IDLE; - s = splbio(); scsipi_done(sc->sc_xs); - splx(s); } void @@ -708,7 +705,6 @@ usscanner_scsipi_cmd(struct scsipi_xfer *xs) struct scsipi_link *sc_link = xs->sc_link; struct usscanner_softc *sc = sc_link->adapter_softc; usbd_status err; - int s; #ifdef notyet DPRINTFN(8, ("%s: usscanner_scsi_cmd: %d:%d " @@ -763,7 +759,5 @@ usscanner_scsipi_cmd(struct scsipi_xfer *xs) done: sc->sc_state = UAS_IDLE; - s = splbio(); scsipi_done(xs); - splx(s); } |