summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-10-13 02:14:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-10-13 02:14:53 +0000
commit20544e8960fd11bf8f27949241138b657b848bce (patch)
treecdb163e3c1a9824b7c5b605f9e770ebedf910b68
parent61c460e14ed808d2a1a0068d00e786111ac4994d (diff)
No need to check ST_DYING flag twice in succession.
Noticed by Damien McGuckin. Thanks!
-rw-r--r--sys/scsi/st.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index ba5d811e631..219b4383338 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.114 2010/09/22 01:18:57 matthew Exp $ */
+/* $OpenBSD: st.c,v 1.115 2010/10/13 02:14:52 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -841,10 +841,6 @@ ststrategy(struct buf *bp)
SC_DEBUG(sc_link, SDEV_DB2, ("ststrategy: %ld bytes @ blk %d\n",
bp->b_bcount, bp->b_blkno));
- if (st->flags & ST_DYING) {
- bp->b_error = ENXIO;
- goto bad;
- }
/*
* If it's a null transfer, return immediately.
*/