[PATCH] drivers: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to list_move(A, B) under drivers/. Acked-by: Corey Minyard <minyard@mvista.com> Cc: Ben Collins <bcollins@debian.org> Acked-by: Roland Dreier <rolandd@cisco.com> Cc: Alasdair Kergon <dm-devel@redhat.com> Cc: Gerd Knorr <kraxel@bytesex.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Frank Pavlic <fpavlic@de.ibm.com> Acked-by: Matthew Wilcox <matthew@wil.cx> Cc: Andrew Vasquez <linux-driver@qlogic.com> Cc: Mikael Starvik <starvik@axis.com> Cc: Greg Kroah-Hartman <greg@kroah.com> Signed-off-by: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a842ef297f
commit
179e09172a
@@ -864,8 +864,7 @@ void ipoib_mcast_restart_task(void *dev_ptr)
|
||||
|
||||
if (mcast) {
|
||||
/* Destroy the send only entry */
|
||||
list_del(&mcast->list);
|
||||
list_add_tail(&mcast->list, &remove_list);
|
||||
list_move_tail(&mcast->list, &remove_list);
|
||||
|
||||
rb_replace_node(&mcast->rb_node,
|
||||
&nmcast->rb_node,
|
||||
@@ -890,8 +889,7 @@ void ipoib_mcast_restart_task(void *dev_ptr)
|
||||
rb_erase(&mcast->rb_node, &priv->multicast_tree);
|
||||
|
||||
/* Move to the remove list */
|
||||
list_del(&mcast->list);
|
||||
list_add_tail(&mcast->list, &remove_list);
|
||||
list_move_tail(&mcast->list, &remove_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user