diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-04-14 08:50:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 08:50:08 +0400 |
commit | ac6f78192054784f02dd47f8e6d7d1c8d75ab173 (patch) | |
tree | 3d211ce8031a9cdd478c45574e44350e59732a03 /net/ipv4/inet_connection_sock.c | |
parent | 3654ea02f2819cf8821c0acd35bc7cded5f1f2a9 (diff) | |
download | linux-ac6f78192054784f02dd47f8e6d7d1c8d75ab173.tar.xz |
[INET]: sk_reuse is valbool
sk_reuse is declared as "unsigned char", but is set as type valbool in net/core/sock.c.
There is no other place in net/ where sk->sk_reuse is set to a value > 1, so the test
"sk_reuse > 1" can not be true.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index ee55678a987d..8d70cfbacb78 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -133,8 +133,6 @@ int inet_csk_get_port(struct sock *sk, unsigned short snum) goto tb_not_found; tb_found: if (!hlist_empty(&tb->owners)) { - if (sk->sk_reuse > 1) - goto success; if (tb->fastreuse > 0 && sk->sk_reuse && sk->sk_state != TCP_LISTEN) { goto success; |