summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-08-09 21:50:21 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-08-09 21:50:21 +0000
commit7eeac8f7a39ea9e3704f517e423360624960accd (patch)
tree2f735f89779011f924b056b0cfd6099450649816 /sys/dev/ic
parentc466d052e17e1adb25b34e317560e20d9042e422 (diff)
Make ami(4) use NO_CCB at least some of the time.
"Should never happen but I like it" marco@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ami.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 27e12799c2c..fbf61ca67d7 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.195 2009/06/11 15:48:10 chl Exp $ */
+/* $OpenBSD: ami.c,v 1.196 2009/08/09 21:50:20 krw Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -1358,11 +1358,7 @@ ami_scsi_raw_cmd(struct scsi_xfer *xs)
ccb = ami_get_ccb(sc);
splx(s);
if (ccb == NULL) {
- xs->error = XS_DRIVER_STUFFUP;
- s = splbio();
- scsi_done(xs);
- splx(s);
- return (COMPLETE);
+ return (NO_CCB);
}
memset(ccb->ccb_pt, 0, sizeof(struct ami_passthrough));
@@ -1493,11 +1489,7 @@ ami_scsi_cmd(struct scsi_xfer *xs)
ccb = ami_get_ccb(sc);
splx(s);
if (ccb == NULL) {
- xs->error = XS_DRIVER_STUFFUP;
- s = splbio();
- scsi_done(xs);
- splx(s);
- return (COMPLETE);
+ return (NO_CCB);
}
ccb->ccb_xs = xs;
@@ -1603,11 +1595,7 @@ ami_scsi_cmd(struct scsi_xfer *xs)
ccb = ami_get_ccb(sc);
splx(s);
if (ccb == NULL) {
- xs->error = XS_DRIVER_STUFFUP;
- s = splbio();
- scsi_done(xs);
- splx(s);
- return (COMPLETE);
+ return (NO_CCB);
}
ccb->ccb_xs = xs;