diff options
author | phk <phk@FreeBSD.org> | 2001-05-06 21:55:22 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-05-06 21:55:22 +0000 |
commit | d95099399d37a681fda4dff26bc0631ea5b988e3 (patch) | |
tree | 7a8b40ff50afe0d7cc1aee2b928221f4ded19339 /sys/dev/ata/ata-raid.c | |
parent | a1f1a879b581a842e4c34c578b4503b28a6e5ff0 (diff) | |
download | FreeBSD-src-d95099399d37a681fda4dff26bc0631ea5b988e3.zip FreeBSD-src-d95099399d37a681fda4dff26bc0631ea5b988e3.tar.gz |
Make the disk mini-layer check for and handle zero-length transfers
instead of the underlying drivers.
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index 30cbd76..546b998 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -158,13 +158,6 @@ arstrategy(struct bio *bp) int lba, count, chunk; caddr_t data; - /* if it's a null transfer, return immediatly. */ - if (bp->bio_bcount == 0) { - bp->bio_resid = 0; - biodone(bp); - return; - } - bp->bio_resid = bp->bio_bcount; lba = bp->bio_pblkno; data = bp->bio_data; |