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 <kuniyu@amazon.com> Link: https://lore.kernel.org/r/20230217200920.85306-1-kuniyu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ee8d72a commit be9832c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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)