summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/ipmux.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-10-23 00:31:42 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-10-23 00:31:42 +0200
commit055f8370432d2c128ce8fd28b059320181d8f3ef (patch)
tree0508e40bd051cd4877dc5fa4de31d60ed5b17e57 /sys/src/9/ip/ipmux.c
parent75c6ab45e02640959260fa98449180e9408141bc (diff)
ip: simplify code as packblock() and concatblock() will never error
Diffstat (limited to 'sys/src/9/ip/ipmux.c')
-rw-r--r--sys/src/9/ip/ipmux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/9/ip/ipmux.c b/sys/src/9/ip/ipmux.c
index ef45ea0ac..2eeca4153 100644
--- a/sys/src/9/ip/ipmux.c
+++ b/sys/src/9/ip/ipmux.c
@@ -745,10 +745,7 @@ yes:
/* tack on interface address */
bp = padblock(bp, IPaddrlen);
ipmove(bp->rp, ifc->lifc->local);
- bp = concatblock(bp);
- if(bp != nil)
- if(qpass(c->rq, bp) < 0)
- print("Q");
+ qpass(c->rq, concatblock(bp));
return;
}