diff options
author | 2006-03-18 04:44:52 +0000 | |
---|---|---|
committer | 2006-03-18 04:44:52 +0000 | |
commit | 67a835f5953ae35a1fff1ccd8358687ea0faa2e9 (patch) | |
tree | f2e8befcf0a1788d94f06febf37c6876f586b671 | |
parent | +/* ARGSUSED */ (diff) | |
download | wireguard-openbsd-67a835f5953ae35a1fff1ccd8358687ea0faa2e9.tar.xz wireguard-openbsd-67a835f5953ae35a1fff1ccd8358687ea0faa2e9.zip |
scsi completions never go via the generic done path now. xs is always set
in the scis done path
-rw-r--r-- | sys/dev/ic/ami.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index f1e8c4f8f9d..4347ddad5b2 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.124 2006/03/18 03:13:43 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.125 2006/03/18 04:44:52 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -1157,13 +1157,10 @@ ami_done_xs(struct ami_softc *sc, struct ami_ccb *ccb) ami_put_ccb(ccb); splx(s); - if (xs) { - timeout_del(&xs->stimeout); - xs->resid = 0; - xs->flags |= ITSDONE; - AMI_DPRINTF(AMI_D_CMD, ("scsi_done(%d) ", idx)); - scsi_done(xs); - } + timeout_del(&xs->stimeout); + xs->resid = 0; + xs->flags |= ITSDONE; + scsi_done(xs); return (0); } @@ -1171,7 +1168,6 @@ ami_done_xs(struct ami_softc *sc, struct ami_ccb *ccb) int ami_done_ccb(struct ami_softc *sc, struct ami_ccb *ccb) { - struct scsi_xfer *xs = ccb->ccb_xs; int s; if (ccb->ccb_data != NULL) { @@ -1196,14 +1192,6 @@ ami_done_ccb(struct ami_softc *sc, struct ami_ccb *ccb) splx(s); } - if (xs) { - timeout_del(&xs->stimeout); - xs->resid = 0; - xs->flags |= ITSDONE; - AMI_DPRINTF(AMI_D_CMD, ("scsi_done(%d) ", idx)); - scsi_done(xs); - } - return (0); } |