From: Hagen Paul Pfeifer Date: Fri, 25 Feb 2011 05:45:18 +0000 (+0000) Subject: ipv6: hash is calculated but not used afterwards X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96d796a38e9ec9a7c04a6cda3fc15d79efebb008;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index fd6782e3a03..3daaf3c7703 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -718,12 +718,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp) struct inet6_ifaddr *ifa, *ifn; struct inet6_dev *idev = ifp->idev; int state; - int hash; int deleted = 0, onlink = 0; unsigned long expires = jiffies; - hash = ipv6_addr_hash(&ifp->addr); - spin_lock_bh(&ifp->state_lock); state = ifp->state; ifp->state = INET6_IFADDR_STATE_DEAD;