summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-06 21:55:22 +0000
committerphk <phk@FreeBSD.org>2001-05-06 21:55:22 +0000
commitd95099399d37a681fda4dff26bc0631ea5b988e3 (patch)
tree7a8b40ff50afe0d7cc1aee2b928221f4ded19339 /sys/dev/ida
parenta1f1a879b581a842e4c34c578b4503b28a6e5ff0 (diff)
downloadFreeBSD-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/ida')
-rw-r--r--sys/dev/ida/ida_disk.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c
index 99251ef..4bf662c 100644
--- a/sys/dev/ida/ida_disk.c
+++ b/sys/dev/ida/ida_disk.c
@@ -169,12 +169,6 @@ idad_strategy(struct bio *bp)
goto bad;
}
- /*
- * If it's a null transfer, return immediately
- */
- if (bp->bio_bcount == 0)
- goto done;
-
bp->bio_driver1 = drv;
s = splbio();
devstat_start_transaction(&drv->stats);
OpenPOWER on IntegriCloud