mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8d09e6b8b9
commit
c882219ae4
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue