From d95099399d37a681fda4dff26bc0631ea5b988e3 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 6 May 2001 21:55:22 +0000 Subject: Make the disk mini-layer check for and handle zero-length transfers instead of the underlying drivers. --- sys/dev/twe/twe_freebsd.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sys/dev/twe') diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c index 15c5574..677e7af 100644 --- a/sys/dev/twe/twe_freebsd.c +++ b/sys/dev/twe/twe_freebsd.c @@ -668,14 +668,6 @@ twed_strategy(twe_bio *bp) return; } - /* do-nothing operation? */ - if (TWE_BIO_LENGTH(bp) == 0) { - TWE_BIO_RESID(bp) = 0; - TWE_BIO_DONE(bp); - TWED_BIO_OUT; - return; - } - /* perform accounting */ TWE_BIO_STATS_START(bp); -- cgit v1.1