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/tcp.c | |
parent | 75c6ab45e02640959260fa98449180e9408141bc (diff) |
ip: simplify code as packblock() and concatblock() will never error
Diffstat (limited to 'sys/src/9/ip/tcp.c')
-rw-r--r-- | sys/src/9/ip/tcp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/9/ip/tcp.c b/sys/src/9/ip/tcp.c index 2fb8acd85..4147f36cf 100644 --- a/sys/src/9/ip/tcp.c +++ b/sys/src/9/ip/tcp.c @@ -2437,10 +2437,7 @@ reset: * receive queue */ if(bp) { - bp = packblock(bp); - if(bp == nil) - panic("tcp packblock"); - qpassnolim(s->rq, bp); + qpassnolim(s->rq, packblock(bp)); bp = nil; } tcb->rcv.nxt += length; |