Commit 96d796a3 authored by Hagen Paul Pfeifer's avatar Hagen Paul Pfeifer Committed by David S. Miller

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: default avatarHagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5f5e368
...@@ -718,12 +718,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp) ...@@ -718,12 +718,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
struct inet6_ifaddr *ifa, *ifn; struct inet6_ifaddr *ifa, *ifn;
struct inet6_dev *idev = ifp->idev; struct inet6_dev *idev = ifp->idev;
int state; int state;
int hash;
int deleted = 0, onlink = 0; int deleted = 0, onlink = 0;
unsigned long expires = jiffies; unsigned long expires = jiffies;
hash = ipv6_addr_hash(&ifp->addr);
spin_lock_bh(&ifp->state_lock); spin_lock_bh(&ifp->state_lock);
state = ifp->state; state = ifp->state;
ifp->state = INET6_IFADDR_STATE_DEAD; ifp->state = INET6_IFADDR_STATE_DEAD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment