aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-28 12:19:03 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-30 23:41:59 -0400
commitc882219ae43ed8d2a06583d24d2ed42d09ca93cf (patch)
treee4aaf71051f87a6cf82c253305329aef6ee316c2 /net
parent8d09e6b8b9c9969ac59496dc21e10b67fe727e7e (diff)
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.c3
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:
3624 state = ifa->state; 3624 state = ifa->state;
3625 ifa->state = INET6_IFADDR_STATE_DEAD; 3625 ifa->state = INET6_IFADDR_STATE_DEAD;
3626 3626
3627 list_del(&ifa->if_list); 3627 list_move(&ifa->if_list, &del_list);
3628 list_add(&ifa->if_list, &del_list);
3629 } 3628 }
3630 3629
3631 spin_unlock_bh(&ifa->lock); 3630 spin_unlock_bh(&ifa->lock);