diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 21:39:28 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 21:39:28 +0100 |
commit | 59dd0af53a0b6ab4eb6283e6296d23b256ab7eec (patch) | |
tree | 53cdf416235c9650ac87959b786d03b5ce18070e /sys/src | |
parent | c1fd7c210bdafe97e7b8d07dc256f4b089df9342 (diff) |
ip/tcp: remove useless nil checks for padblock() and allocb() return value
Diffstat (limited to 'sys/src')
-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 4147f36cf..a4898db8c 100644 --- a/sys/src/9/ip/tcp.c +++ b/sys/src/9/ip/tcp.c @@ -1034,14 +1034,10 @@ htontcp6(Tcp *tcph, Block *data, Tcp6hdr *ph, Tcpctl *tcb) if(data) { dlen = blocklen(data); data = padblock(data, hdrlen + TCP6_PKT); - if(data == nil) - return nil; } else { dlen = 0; data = allocb(hdrlen + TCP6_PKT + 64); /* the 64 pad is to meet mintu's */ - if(data == nil) - return nil; data->wp += hdrlen + TCP6_PKT; } |