net-tcp: remove useless tw_timeout field
authorMaciej Żenczykowski <maze@google.com>
Tue, 5 Jun 2018 10:07:23 +0000 (03:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 14:45:24 +0000 (10:45 -0400)
Tested: 'git grep tw_timeout' comes up empty and it builds :-)

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_timewait_sock.h
net/dccp/minisocks.c
net/ipv4/tcp_minisocks.c

index 659d8ed..7877503 100644 (file)
@@ -61,7 +61,6 @@ struct inet_timewait_sock {
 #define tw_cookie              __tw_common.skc_cookie
 #define tw_dr                  __tw_common.skc_tw_dr
 
-       int                     tw_timeout;
        __u32                   tw_mark;
        volatile unsigned char  tw_substate;
        unsigned char           tw_rcv_wscale;
index 37ccbe6..ba6fc3c 100644 (file)
@@ -53,7 +53,6 @@ void dccp_time_wait(struct sock *sk, int state, int timeo)
                if (timeo < rto)
                        timeo = rto;
 
-               tw->tw_timeout = DCCP_TIMEWAIT_LEN;
                if (state == DCCP_TIME_WAIT)
                        timeo = DCCP_TIMEWAIT_LEN;
 
index f867658..1dda134 100644 (file)
@@ -307,7 +307,6 @@ void tcp_time_wait(struct sock *sk, int state, int timeo)
                if (timeo < rto)
                        timeo = rto;
 
-               tw->tw_timeout = TCP_TIMEWAIT_LEN;
                if (state == TCP_TIME_WAIT)
                        timeo = TCP_TIMEWAIT_LEN;