]> Git Repo - linux.git/commitdiff
net/ulp: Remove redundant ->clone() test in inet_clone_ulp().
authorKuniyuki Iwashima <[email protected]>
Fri, 17 Feb 2023 20:09:20 +0000 (12:09 -0800)
committerJakub Kicinski <[email protected]>
Tue, 21 Feb 2023 00:31:49 +0000 (16:31 -0800)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
net/ipv4/inet_connection_sock.c

index eedcf4146d29e72d5d184537a97bd124637bb314..65ad4251f6fd849c7aeb0d981dc337111fb246b0 100644 (file)
@@ -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);
 }
 
 /**
This page took 0.049383 seconds and 4 git commands to generate.