summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/pktmedium.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/pktmedium.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/pktmedium.c')
-rw-r--r--sys/src/9/ip/pktmedium.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/9/ip/pktmedium.c b/sys/src/9/ip/pktmedium.c
index 81feb3dfb..d978289c4 100644
--- a/sys/src/9/ip/pktmedium.c
+++ b/sys/src/9/ip/pktmedium.c
@@ -51,7 +51,6 @@ static void
pktbwrite(Ipifc *ifc, Block *bp, int, uchar*)
{
/* enqueue onto the conversation's rq */
- bp = concatblock(bp);
if(ifc->conv->snoopers.ref > 0)
qpass(ifc->conv->sq, copyblock(bp, BLEN(bp)));
qpass(ifc->conv->rq, bp);