diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-10-23 00:31:42 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-10-23 00:31:42 +0200 |
commit | 055f8370432d2c128ce8fd28b059320181d8f3ef (patch) | |
tree | 0508e40bd051cd4877dc5fa4de31d60ed5b17e57 /sys/src/9/ip/ipmux.c | |
parent | 75c6ab45e02640959260fa98449180e9408141bc (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.c | 5 |
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; } |