Skip to content

Commit c882219

Browse files
weiyjdavem330
authored andcommitted
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]>
1 parent 8d09e6b commit c882219

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/ipv6/addrconf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,8 +3624,7 @@ static int addrconf_ifdown(struct net_device *dev, int how)
36243624
state = ifa->state;
36253625
ifa->state = INET6_IFADDR_STATE_DEAD;
36263626

3627-
list_del(&ifa->if_list);
3628-
list_add(&ifa->if_list, &del_list);
3627+
list_move(&ifa->if_list, &del_list);
36293628
}
36303629

36313630
spin_unlock_bh(&ifa->lock);

0 commit comments

Comments
 (0)