Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: lpfc: Use list_move_tail() instead of list_del()/list_add_tail()

Using list_move_tail() instead of list_del() + list_add_tail().

Link: https://lore.kernel.org/r/1623113493-49384-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Zou Wei and committed by
Martin K. Petersen
47018083 52e1b3b3

+1 -2
+1 -2
drivers/scsi/lpfc/lpfc_sli.c
··· 20185 20185 (mb->u.mb.mbxCommand != MBX_REG_VPI)) 20186 20186 continue; 20187 20187 20188 - list_del(&mb->list); 20189 - list_add_tail(&mb->list, &mbox_cmd_list); 20188 + list_move_tail(&mb->list, &mbox_cmd_list); 20190 20189 } 20191 20190 /* Clean up active mailbox command with the vport */ 20192 20191 mb = phba->sli.mbox_active;