diff options
author | 2013-01-16 06:42:22 +0000 | |
---|---|---|
committer | 2013-01-16 06:42:22 +0000 | |
commit | d44d08587772aba21f1ff84cdb5fa38507f61091 (patch) | |
tree | f682adea5813085ca37b125bcd9dd7a0b9b31a9b /sys/dev/softraid_raid0.c | |
parent | Factor out code used to release ccbs from a workunit. (diff) | |
download | wireguard-openbsd-d44d08587772aba21f1ff84cdb5fa38507f61091.tar.xz wireguard-openbsd-d44d08587772aba21f1ff84cdb5fa38507f61091.zip |
Set resid to zero if the scsi transfer completed without error.
ok krw@
Diffstat (limited to 'sys/dev/softraid_raid0.c')
-rw-r--r-- | sys/dev/softraid_raid0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c index 3946e50900d..9b8228f27dc 100644 --- a/sys/dev/softraid_raid0.c +++ b/sys/dev/softraid_raid0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid0.c,v 1.29 2013/01/15 09:28:29 jsing Exp $ */ +/* $OpenBSD: softraid_raid0.c,v 1.30 2013/01/16 06:42:22 jsing Exp $ */ /* * Copyright (c) 2008 Marco Peereboom <marco@peereboom.us> * @@ -316,7 +316,6 @@ sr_raid0_intr(struct buf *bp) goto bad; xs->error = XS_NOERROR; - xs->resid = 0; pend = 0; TAILQ_FOREACH(wup, &sd->sd_wu_pendq, swu_link) { |