Commit c882219a authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

net: ipv6: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d09e6b8
......@@ -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);
......
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