diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2023-02-17 21:09:20 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-21 01:31:49 +0100 |
commit | be9832c2e9cc4c15906a77baddcd906fb4bb864b (patch) | |
tree | d1b9df10dad7e0e3be7409743dbe0a0f481235c6 /net/ipv4/inet_connection_sock.c | |
parent | Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf... (diff) | |
download | linux-be9832c2e9cc4c15906a77baddcd906fb4bb864b.tar.xz linux-be9832c2e9cc4c15906a77baddcd906fb4bb864b.zip |
net/ulp: Remove redundant ->clone() test in inet_clone_ulp().
Commit 2c02d41d71f9 ("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: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20230217200920.85306-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index eedcf4146d29..65ad4251f6fd 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -1122,8 +1122,7 @@ 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); + icsk->icsk_ulp_ops->clone(req, newsk, priority); } /** |