diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-07 11:03:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-07 11:03:38 +0000 |
commit | 457008582d2b828dce07a63dd8cfff996f981ee3 (patch) | |
tree | f4fc90d8655ad46b4a0928dc63e6225bc68830fb /sys/dev/ic | |
parent | 818da20e70a879297e16fad4300d8bb682616767 (diff) |
dont use the xs in the scsi_cmd routines after calling ciss_cmd, it might
have been completed. the xs was used to figure out if we should return
COMPLETED or SUCCESFULLY_QUEUED. the return value doesnt mean anything
anymore, so just return COMPLETE.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ciss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index 375d9fb51af..c3bb43404fb 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.37 2010/01/07 10:58:37 dlg Exp $ */ +/* $OpenBSD: ciss.c,v 1.38 2010/01/07 11:03:37 dlg Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -923,7 +923,7 @@ ciss_scsi_raw_cmd(struct scsi_xfer *xs) /* TODO */ } CISS_UNLOCK(sc, lock); - return xs->flags & SCSI_POLL? COMPLETE : SUCCESSFULLY_QUEUED; + return (COMPLETE); } int @@ -988,7 +988,7 @@ ciss_scsi_cmd(struct scsi_xfer *xs) } CISS_UNLOCK(sc, lock); - return xs->flags & SCSI_POLL? COMPLETE : SUCCESSFULLY_QUEUED; + return (COMPLETE); } int |