diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-08 21:05:01 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-08 21:05:01 +0100 |
commit | 99cc56f2e986f7337142d382d699ef09c337074a (patch) | |
tree | 03b35c45be681d1b5716c147b1be0d94f52bd469 /sys/src/9/ip/tcp.c | |
parent | 5cbffd6e6b4430724532beb5bb130ea701cd1a70 (diff) |
kernel/ip: remove nil checks for allocb() and padblock()
Diffstat (limited to 'sys/src/9/ip/tcp.c')
-rw-r--r-- | sys/src/9/ip/tcp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/src/9/ip/tcp.c b/sys/src/9/ip/tcp.c index a4898db8c..545cdb42e 100644 --- a/sys/src/9/ip/tcp.c +++ b/sys/src/9/ip/tcp.c @@ -1114,14 +1114,10 @@ htontcp4(Tcp *tcph, Block *data, Tcp4hdr *ph, Tcpctl *tcb) if(data) { dlen = blocklen(data); data = padblock(data, hdrlen + TCP4_PKT); - if(data == nil) - return nil; } else { dlen = 0; data = allocb(hdrlen + TCP4_PKT + 64); /* the 64 pad is to meet mintu's */ - if(data == nil) - return nil; data->wp += hdrlen + TCP4_PKT; } |