提交 be9832c2 编写于 作者: K Kuniyuki Iwashima 提交者: Jakub Kicinski

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: NKuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20230217200920.85306-1-kuniyu@amazon.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
上级 ee8d72a1
...@@ -1122,8 +1122,7 @@ static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk, ...@@ -1122,8 +1122,7 @@ static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk,
if (!icsk->icsk_ulp_ops) if (!icsk->icsk_ulp_ops)
return; return;
if (icsk->icsk_ulp_ops->clone) icsk->icsk_ulp_ops->clone(req, newsk, priority);
icsk->icsk_ulp_ops->clone(req, newsk, priority);
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册