diff options
| author | Geliang Tang <[email protected]> | 2023-01-06 18:57:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-01-09 07:30:49 +0000 |
| commit | a963853fd465e6ede985e71a320bc8a0ae7f878f (patch) | |
| tree | d8bd90606f4306ba4dbd67d4c387883d3d5aa333 /net/mptcp/protocol.c | |
| parent | mptcp: use msk_owned_by_me helper (diff) | |
| download | kernel-a963853fd465e6ede985e71a320bc8a0ae7f878f.tar.gz kernel-a963853fd465e6ede985e71a320bc8a0ae7f878f.zip | |
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 <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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; } |
