Skip to content

Commit be9832c

Browse files
q2venkuba-moo
authored andcommitted
net/ulp: Remove redundant ->clone() test in inet_clone_ulp().
Commit 2c02d41 ("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]>
1 parent ee8d72a commit be9832c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/ipv4/inet_connection_sock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,7 @@ static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk,
11221122
if (!icsk->icsk_ulp_ops)
11231123
return;
11241124

1125-
if (icsk->icsk_ulp_ops->clone)
1126-
icsk->icsk_ulp_ops->clone(req, newsk, priority);
1125+
icsk->icsk_ulp_ops->clone(req, newsk, priority);
11271126
}
11281127

11291128
/**

0 commit comments

Comments
 (0)