diff options
author | Geliang Tang <geliang.tang@suse.com> | 2023-01-06 21:57:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-09 10:30:49 +0300 |
commit | a963853fd465e6ede985e71a320bc8a0ae7f878f (patch) | |
tree | d8bd90606f4306ba4dbd67d4c387883d3d5aa333 /net/mptcp/protocol.c | |
parent | 109cdeb8dfa3ab18afc7509a5044e48bd9fc89f7 (diff) | |
download | linux-a963853fd465e6ede985e71a320bc8a0ae7f878f.tar.xz |
mptcp: use net instead of sock_net
Use the local variable 'net' instead of sock_net() in the functions where
the variable 'struct net *net' has been defined.
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/protocol.c')
-rw-r--r-- | net/mptcp/protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index c533b4647fbe..62c140f96d77 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -2723,8 +2723,8 @@ static int mptcp_init_sock(struct sock *sk) mptcp_ca_reset(sk); sk_sockets_allocated_inc(sk); - sk->sk_rcvbuf = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[1]); - sk->sk_sndbuf = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_wmem[1]); + sk->sk_rcvbuf = READ_ONCE(net->ipv4.sysctl_tcp_rmem[1]); + sk->sk_sndbuf = READ_ONCE(net->ipv4.sysctl_tcp_wmem[1]); return 0; } |