summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-28 16:19:03 +0000
committerDavid S. Miller <davem@davemloft.net>2016-07-30 20:41:59 -0700
commitc882219ae43ed8d2a06583d24d2ed42d09ca93cf (patch)
treee4aaf71051f87a6cf82c253305329aef6ee316c2 /net
parent8d09e6b8b9c9969ac59496dc21e10b67fe727e7e (diff)
downloadlinux-stable-c882219ae43ed8d2a06583d24d2ed42d09ca93cf.tar.gz
linux-stable-c882219ae43ed8d2a06583d24d2ed42d09ca93cf.tar.bz2
linux-stable-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.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);