summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/devip.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-11-07 22:05:29 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-11-07 22:05:29 +0100
commit857f2528e0b014b6bd839535daaa6b53853703d9 (patch)
treec81c520a5cf17c79ea31acbf018f36acbc130489 /sys/src/9/ip/devip.c
parentea993877a96cd535199d0cd437e49f8d616615d9 (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.c3
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);