diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2011-02-25 00:45:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-25 17:00:22 -0500 |
commit | 96d796a38e9ec9a7c04a6cda3fc15d79efebb008 (patch) | |
tree | 2452390cd9a4044bf63f05836d595b775c2206db /net | |
parent | a5f5e3689c8682e06ba155676d69ccf3f4172cb4 (diff) |
ipv6: hash is calculated but not used afterwards
hash is declared and assigned but not used anymore. ipv6_addr_hash()
exhibit no side-effects.
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index fd6782e3a038..3daaf3c7703c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -718,12 +718,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp) | |||
718 | struct inet6_ifaddr *ifa, *ifn; | 718 | struct inet6_ifaddr *ifa, *ifn; |
719 | struct inet6_dev *idev = ifp->idev; | 719 | struct inet6_dev *idev = ifp->idev; |
720 | int state; | 720 | int state; |
721 | int hash; | ||
722 | int deleted = 0, onlink = 0; | 721 | int deleted = 0, onlink = 0; |
723 | unsigned long expires = jiffies; | 722 | unsigned long expires = jiffies; |
724 | 723 | ||
725 | hash = ipv6_addr_hash(&ifp->addr); | ||
726 | |||
727 | spin_lock_bh(&ifp->state_lock); | 724 | spin_lock_bh(&ifp->state_lock); |
728 | state = ifp->state; | 725 | state = ifp->state; |
729 | ifp->state = INET6_IFADDR_STATE_DEAD; | 726 | ifp->state = INET6_IFADDR_STATE_DEAD; |