diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2017-12-19 22:12:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-20 14:00:25 -0500 |
commit | 986ffdfd08dbaae721e82720e6bfc2c307e732dd (patch) | |
tree | 0aa6bd09827ff4654e2b3f563cb0059945fd6194 /net/ipv4/tcp_ipv4.c | |
parent | 563e0bb0dc74b3ca888e24f8c08f0239fe4016b0 (diff) |
net: sock: replace sk_state_load with inet_sk_state_load and remove sk_state_store
sk_state_load is only used by AF_INET/AF_INET6, so rename it to
inet_sk_state_load and move it into inet_sock.h.
sk_state_store is removed as it is not used any more.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 94e28350f420..dd945b114215 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2281,7 +2281,7 @@ static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i) | |||
2281 | timer_expires = jiffies; | 2281 | timer_expires = jiffies; |
2282 | } | 2282 | } |
2283 | 2283 | ||
2284 | state = sk_state_load(sk); | 2284 | state = inet_sk_state_load(sk); |
2285 | if (state == TCP_LISTEN) | 2285 | if (state == TCP_LISTEN) |
2286 | rx_queue = sk->sk_ack_backlog; | 2286 | rx_queue = sk->sk_ack_backlog; |
2287 | else | 2287 | else |