Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
19a76fa9 4867faab

-3
-3
net/ipv4/ping.c
··· 137 137 struct inet_sock *isk = inet_sk(sk); 138 138 pr_debug("ping_v4_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); 139 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 140 write_lock_bh(&ping_table.lock); 144 141 hlist_nulls_del(&sk->sk_nulls_node); 145 142 sock_put(sk);