]> 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)
commitac32ca4b0586edcf9be39fb27084a10e1ef0bfb9
treee4319228459e2b53f11fa0a0e2a80dd2dea093cc
parenta68b066a559a3bc96432c212d11068911f19ab1f
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