tcp: remove redundant checks II

For same reasons than in commit 12e25e1041 ("tcp: remove redundant
checks"), we can remove redundant checks done for timewait sockets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2015-06-04 08:01:12 -07:00 committed by David S. Miller
parent 908e80d654
commit 98da81a426
2 changed files with 0 additions and 8 deletions

View File

@ -1671,10 +1671,6 @@ do_time_wait:
goto discard_it; goto discard_it;
} }
if (skb->len < (th->doff << 2)) {
inet_twsk_put(inet_twsk(sk));
goto bad_packet;
}
if (tcp_checksum_complete(skb)) { if (tcp_checksum_complete(skb)) {
inet_twsk_put(inet_twsk(sk)); inet_twsk_put(inet_twsk(sk));
goto csum_error; goto csum_error;

View File

@ -1467,10 +1467,6 @@ do_time_wait:
tcp_v6_fill_cb(skb, hdr, th); tcp_v6_fill_cb(skb, hdr, th);
if (skb->len < (th->doff<<2)) {
inet_twsk_put(inet_twsk(sk));
goto bad_packet;
}
if (tcp_checksum_complete(skb)) { if (tcp_checksum_complete(skb)) {
inet_twsk_put(inet_twsk(sk)); inet_twsk_put(inet_twsk(sk));
goto csum_error; goto csum_error;