diff options
author | 2010-01-10 00:10:23 +0000 | |
---|---|---|
committer | 2010-01-10 00:10:23 +0000 | |
commit | 2fb766a8f037f3d1098a4bee8170f3a28ab3b879 (patch) | |
tree | a2cdfe041cd94d1ed5375bf87a6654f11260ebfd /sys/dev/ic/aic79xx_openbsd.c | |
parent | Do not try to reevaluate the current RX production index on each (diff) | |
download | wireguard-openbsd-2fb766a8f037f3d1098a4bee8170f3a28ab3b879.tar.xz wireguard-openbsd-2fb766a8f037f3d1098a4bee8170f3a28ab3b879.zip |
Set ITSDONE in scsi_done() and zap trivial instances of setting it
in the drivers just before calling scsi_done().
ok dlg@ beck@
Diffstat (limited to 'sys/dev/ic/aic79xx_openbsd.c')
-rw-r--r-- | sys/dev/ic/aic79xx_openbsd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c index f9f9bb1397c..472f2ff5226 100644 --- a/sys/dev/ic/aic79xx_openbsd.c +++ b/sys/dev/ic/aic79xx_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic79xx_openbsd.c,v 1.33 2009/11/22 14:14:10 krw Exp $ */ +/* $OpenBSD: aic79xx_openbsd.c,v 1.34 2010/01/10 00:10:23 krw Exp $ */ /* * Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom @@ -278,7 +278,6 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb) ahd_lock(ahd, &s); ahd_free_scb(ahd, scb); - xs->flags |= ITSDONE; scsi_done(xs); ahd_unlock(ahd, &s); } @@ -322,7 +321,6 @@ ahd_action(struct scsi_xfer *xs) ahd_lock(ahd, &s); if ((ahd->flags & AHD_INITIATORROLE) == 0) { xs->error = XS_DRIVER_STUFFUP; - xs->flags |= ITSDONE; scsi_done(xs); ahd_unlock(ahd, &s); return (COMPLETE); @@ -546,7 +544,6 @@ ahd_setup_data(struct ahd_softc *ahd, struct scsi_xfer *xs, ahd_lock(ahd, &s); ahd_free_scb(ahd, scb); xs->error = XS_DRIVER_STUFFUP; - xs->flags |= ITSDONE; scsi_done(xs); ahd_unlock(ahd, &s); return (COMPLETE); |