Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
David S. Miller
c882219a 8d09e6b8

+1 -2
+1 -2
net/ipv6/addrconf.c
··· 3624 3624 state = ifa->state; 3625 3625 ifa->state = INET6_IFADDR_STATE_DEAD; 3626 3626 3627 - list_del(&ifa->if_list); 3628 - list_add(&ifa->if_list, &del_list); 3627 + list_move(&ifa->if_list, &del_list); 3629 3628 } 3630 3629 3631 3630 spin_unlock_bh(&ifa->lock);