diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-05-22 18:23:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-23 16:29:24 -0400 |
commit | 19a76fa9593bad778dabeeec1f6c2df6effe9ca3 (patch) | |
tree | b22ca6963dd1baa18997eb138cfcfc50df4a8bf9 /net/ipv4/ping.c | |
parent | 4867faab1e3eb8cc3f74e390357615d9b8e8cda6 (diff) |
net: ping: cleanups ping_v4_unhash()
net/ipv4/ping.c: In function ‘ping_v4_unhash’:
net/ipv4/ping.c:140:28: warning: variable ‘hslot’ set but not used
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r-- | net/ipv4/ping.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 1f3bb11490c9..9aaa67165f42 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -137,9 +137,6 @@ static void ping_v4_unhash(struct sock *sk) | |||
137 | struct inet_sock *isk = inet_sk(sk); | 137 | struct inet_sock *isk = inet_sk(sk); |
138 | pr_debug("ping_v4_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); | 138 | pr_debug("ping_v4_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); |
139 | if (sk_hashed(sk)) { | 139 | if (sk_hashed(sk)) { |
140 | struct hlist_nulls_head *hslot; | ||
141 | |||
142 | hslot = ping_hashslot(&ping_table, sock_net(sk), isk->inet_num); | ||
143 | write_lock_bh(&ping_table.lock); | 140 | write_lock_bh(&ping_table.lock); |
144 | hlist_nulls_del(&sk->sk_nulls_node); | 141 | hlist_nulls_del(&sk->sk_nulls_node); |
145 | sock_put(sk); | 142 | sock_put(sk); |