[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
@@ -5118,8 +5118,7 @@ static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp)
|
||||
cp->host_status &= ~HS_SKIPMASK;
|
||||
cp->start.schedule.l_paddr =
|
||||
cpu_to_scr(NCB_SCRIPT_PHYS (np, select));
|
||||
list_del(&cp->link_ccbq);
|
||||
list_add_tail(&cp->link_ccbq, &lp->skip_ccbq);
|
||||
list_move_tail(&cp->link_ccbq, &lp->skip_ccbq);
|
||||
if (cp->queued) {
|
||||
--lp->queuedccbs;
|
||||
}
|
||||
|
||||
@@ -2258,8 +2258,7 @@ qla2x00_configure_fabric(scsi_qla_host_t *ha)
|
||||
}
|
||||
|
||||
/* Remove device from the new list and add it to DB */
|
||||
list_del(&fcport->list);
|
||||
list_add_tail(&fcport->list, &ha->fcports);
|
||||
list_move_tail(&fcport->list, &ha->fcports);
|
||||
|
||||
/* Login and update database */
|
||||
qla2x00_fabric_dev_login(ha, fcport, &next_loopid);
|
||||
|
||||
Reference in New Issue
Block a user