diff --git a/net/ipv6/route.c b/net/ipv6/route.c index f786aed02a6e7f0846503be665e80b6455896ec3..7e9443f835f9ffedf2ae7d9774f64b45b9ac6eff 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1075,11 +1075,9 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *dev, int icmp6_dst_gc(void) { - struct dst_entry *dst, *next, **pprev; + struct dst_entry *dst, **pprev; int more = 0; - next = NULL; - spin_lock_bh(&icmp6_dst_lock); pprev = &icmp6_dst_gc_list;