提交 c882219a 编写于 作者: W Wei Yongjun 提交者: 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: NWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册