summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-28 19:19:03 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-31 06:41:59 +0300
commitc882219ae43ed8d2a06583d24d2ed42d09ca93cf (patch)
treee4aaf71051f87a6cf82c253305329aef6ee316c2 /net
parent8d09e6b8b9c9969ac59496dc21e10b67fe727e7e (diff)
downloadlinux-c882219ae43ed8d2a06583d24d2ed42d09ca93cf.tar.xz
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:
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);