diff mbox series

[v1,1/5] Squash-to: "mptcp: Add ADD_ADDR handling"

Message ID b4439e27f0c42d429f714b1d8afc69fd3f240fba.1584728932.git.pabeni@redhat.com
State Accepted, archived
Delegated to: Matthieu Baerts
Headers show
Series squash and cleanup | expand

Commit Message

Paolo Abeni March 20, 2020, 6:34 p.m. UTC
subflow->conn is always valid for is_mptcp socket, drop
unneeded check

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 net/mptcp/options.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index 9b90bdc419ac..633bda691fff 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -486,9 +486,6 @@  static bool mptcp_established_options_addr(struct sock *sk,
 	struct sockaddr_storage saddr;
 	u8 id;
 
-	if (!msk)
-		return false;
-
 	id = 0;
 	memset(&saddr, 0, sizeof(saddr));