net: ipv6: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wei Yongjun 2016-07-28 16:19:03 +00:00 committed by David S. Miller
parent 8d09e6b8b9
commit c882219ae4

View File

@ -3624,8 +3624,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
state = ifa->state;
ifa->state = INET6_IFADDR_STATE_DEAD;
list_del(&ifa->if_list);
list_add(&ifa->if_list, &del_list);
list_move(&ifa->if_list, &del_list);
}
spin_unlock_bh(&ifa->lock);