diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-07-28 18:19:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-31 05:41:59 +0200 |
commit | c882219ae43ed8d2a06583d24d2ed42d09ca93cf (patch) | |
tree | e4aaf71051f87a6cf82c253305329aef6ee316c2 /net | |
parent | cxgb4/cxgb4vf: Fixes regression in perf when tx vlan offload is disabled (diff) | |
download | linux-c882219ae43ed8d2a06583d24d2ed42d09ca93cf.tar.xz linux-c882219ae43ed8d2a06583d24d2ed42d09ca93cf.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 6287a8b9f428..ab3e796596b1 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3624,8 +3624,7 @@ restart: 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); |