diff mbox series

[2/4] mptcp: use customary name for tcp_sock variable

Message ID 11ddd259a602f020805abbc12ed400c22f69fed0.1573471424.git.pabeni@redhat.com
State Accepted, archived
Delegated to: Matthieu Baerts
Headers show
Series mptcp: some cleanups | expand

Commit Message

Paolo Abeni Nov. 11, 2019, 11:28 a.m. UTC
The variable is currently renamed in later patch
"mptcp: Handle MP_CAPABLE options for outgoing connections",
let's do it here instead

Squash-to: mptcp: Associate MPTCP context with TCP socket
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/mptcp/subflow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index c1800f94437d..29d4d1cb284e 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -63,8 +63,8 @@  static struct mptcp_subflow_context *subflow_create_ctx(struct sock *sk,
 
 static int subflow_ulp_init(struct sock *sk)
 {
-	struct tcp_sock *tsk = tcp_sk(sk);
 	struct mptcp_subflow_context *ctx;
+	struct tcp_sock *tp = tcp_sk(sk);
 	int err = 0;
 
 	/* disallow attaching ULP to a socket unless it has been
@@ -83,7 +83,7 @@  static int subflow_ulp_init(struct sock *sk)
 
 	pr_debug("subflow=%p", ctx);
 
-	tsk->is_mptcp = 1;
+	tp->is_mptcp = 1;
 out:
 	return err;
 }