forked from luck/tmp_suning_uos_patched
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:
parent
8d09e6b8b9
commit
c882219ae4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user