]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Remove unnecessary conditions in inet_csk_bind_conflict().
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Tue, 10 Mar 2020 08:05:24 +0000 (17:05 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 19:08:09 +0000 (12:08 -0700)
commitfb90c118b289bd4a09a73717402aff2922486177
treee4319228459e2b53f11fa0a0e2a80dd2dea093cc
parent4aaba6c8f37c94843c455ee05f22245a56129a37
tcp: Remove unnecessary conditions in inet_csk_bind_conflict().

When we get an ephemeral port, the relax is false, so the SO_REUSEADDR
conditions may be evaluated twice. We do not need to check the conditions
again.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c