[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
@@ -411,8 +411,7 @@ static inline void urb_list_move_last(struct urb *urb, int epid)
|
||||
urb_entry_t *urb_entry = __urb_list_entry(urb, epid);
|
||||
assert(urb_entry);
|
||||
|
||||
list_del(&urb_entry->list);
|
||||
list_add_tail(&urb_entry->list, &urb_list[epid]);
|
||||
list_move_tail(&urb_entry->list, &urb_list[epid]);
|
||||
}
|
||||
|
||||
/* Get the next urb in the list. */
|
||||
|
Reference in New Issue
Block a user