Commit be9832c2 authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by Jakub Kicinski
Browse files

net/ulp: Remove redundant ->clone() test in inet_clone_ulp().



Commit 2c02d41d ("net/ulp: prevent ULP without clone op from entering
the LISTEN status") guarantees that all ULP listeners have clone() op, so
we no longer need to test it in inet_clone_ulp().

Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20230217200920.85306-1-kuniyu@amazon.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ee8d72a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1122,7 +1122,6 @@ static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk,
	if (!icsk->icsk_ulp_ops)
		return;

	if (icsk->icsk_ulp_ops->clone)
	icsk->icsk_ulp_ops->clone(req, newsk, priority);
}