projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4867faa
)
net: ping: cleanups ping_v4_unhash()
author
Eric Dumazet
<
[email protected]
>
Sun, 22 May 2011 22:23:00 +0000
(22:23 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 23 May 2011 20:29:24 +0000
(16:29 -0400)
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 <
[email protected]
>
CC: Vasiliy Kulikov <
[email protected]
>
Acked-by: Vasiliy Kulikov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/ping.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ping.c
b/net/ipv4/ping.c
index 1f3bb11490c960fff3f4d332c00bd1aeb98d9054..9aaa67165f42453ed0af947cebb53cc49163ab4a 100644
(file)
--- a/
net/ipv4/ping.c
+++ b/
net/ipv4/ping.c
@@
-137,9
+137,6
@@
static void ping_v4_unhash(struct sock *sk)
struct inet_sock *isk = inet_sk(sk);
pr_debug("ping_v4_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num);
if (sk_hashed(sk)) {
- struct hlist_nulls_head *hslot;
-
- hslot = ping_hashslot(&ping_table, sock_net(sk), isk->inet_num);
write_lock_bh(&ping_table.lock);
hlist_nulls_del(&sk->sk_nulls_node);
sock_put(sk);