From: Wei Yongjun Date: Thu, 28 Jul 2016 16:16:48 +0000 (+0000) Subject: PCI: hv: Use list_move_tail() instead of list_del() + list_add_tail() X-Git-Tag: v4.9-rc1~92^2~1^6~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4f1cb01a7892582d18483986fbc268cdef1b1dee;p=karo-tx-linux.git PCI: hv: Use list_move_tail() instead of list_del() + list_add_tail() Use list_move_tail() instead of list_del() + list_add_tail(). No functional change intended Signed-off-by: Wei Yongjun Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 6955ffdb89f3..a8deeca984cf 100644 --- a/drivers/pci/host/pci-hyperv.c +++ b/drivers/pci/host/pci-hyperv.c @@ -1466,8 +1466,7 @@ static void pci_devices_present_work(struct work_struct *work) if (hpdev->reported_missing) { found = true; put_pcichild(hpdev, hv_pcidev_ref_childlist); - list_del(&hpdev->list_entry); - list_add_tail(&hpdev->list_entry, &removed); + list_move_tail(&hpdev->list_entry, &removed); break; } }