summaryrefslogtreecommitdiff
path: root/sys/dev/ic/twe.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-12-03 16:53:17 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-12-03 16:53:17 +0000
commit59413aaf9936ee396905effecb9206e3e5d9e01f (patch)
treed820a69874e8e867417c8c87fff410362b921e48 /sys/dev/ic/twe.c
parent734d8d431c424e5467db4143f21b9249f5900059 (diff)
The first thing done when XXX_scsi_cmd() returns TRY_AGAIN_LATER is
to set xs->error to XS_BUSY. So it is pointless and misleading to set xs->error to XS_TIMEOUT, XS_DRIVER_STUFFUP or XS_BUSY just before returning TRY_AGAIN_LATER. No functional change.
Diffstat (limited to 'sys/dev/ic/twe.c')
-rw-r--r--sys/dev/ic/twe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index 6596b7d8c2d..3d2f4e77b62 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.24 2005/09/15 05:33:39 krw Exp $ */
+/* $OpenBSD: twe.c,v 1.25 2005/12/03 16:53:16 krw Exp $ */
/*
* Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved.
@@ -921,7 +921,6 @@ twe_scsi_cmd(xs)
TWE_UNLOCK(sc, lock);
TWE_DPRINTF(TWE_D_CMD, ("failed %p ", xs));
if (xs->flags & SCSI_POLL) {
- xs->error = XS_TIMEOUT;
return (TRY_AGAIN_LATER);
} else {
xs->error = XS_DRIVER_STUFFUP;