projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d09e6b
)
net: ipv6: use list_move instead of list_del/list_add
author
Wei Yongjun
<weiyj.lk@gmail.com>
Thu, 28 Jul 2016 16:19:03 +0000
(16:19 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 31 Jul 2016 03:41:59 +0000
(20:41 -0700)
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>
net/ipv6/addrconf.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 6287a8b9f428213eef68419d2a35325cd8a574b7..ab3e796596b1dc065ba46390e82306fe138c8509 100644
(file)
--- 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);