diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
commit | 857f2528e0b014b6bd839535daaa6b53853703d9 (patch) | |
tree | c81c520a5cf17c79ea31acbf018f36acbc130489 /sys/src/9/ip/devip.c | |
parent | ea993877a96cd535199d0cd437e49f8d616615d9 (diff) |
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.
Diffstat (limited to 'sys/src/9/ip/devip.c')
-rw-r--r-- | sys/src/9/ip/devip.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |