From 857f2528e0b014b6bd839535daaa6b53853703d9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 7 Nov 2016 22:05:29 +0100 Subject: ip: always pass a single block to Medium.bwrite(), avoid concatblock() calls in Dev.bwrite() the convention for Dev.bwrite() is that it accepts a *single* block, and not a block chain. so we never have concatblock here. to keep stuff consistent, we also guarantee thet Medium.bwrite() will get a *single* block passed as well, as the callers are few in number. --- sys/src/9/ip/devip.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/src/9/ip/devip.c') diff --git a/sys/src/9/ip/devip.c b/sys/src/9/ip/devip.c index c784f73a0..2f39a6535 100644 --- a/sys/src/9/ip/devip.c +++ b/sys/src/9/ip/devip.c @@ -1195,9 +1195,6 @@ ipbwrite(Chan* ch, Block* bp, ulong offset) if(c->wq == nil) error(Eperm); - if(bp->next) - bp = concatblock(bp); - return qbwrite(c->wq, bp); default: return devbwrite(ch, bp, offset); -- cgit v1.2.3