diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-07-28 12:16:48 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-08-22 15:35:38 -0400 |
commit | 4f1cb01a7892582d18483986fbc268cdef1b1dee (patch) | |
tree | 92da175fff4c39c11d7b5073301f3884458558ad | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
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 <weiyj.lk@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/host/pci-hyperv.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
1466 | if (hpdev->reported_missing) { | 1466 | if (hpdev->reported_missing) { |
1467 | found = true; | 1467 | found = true; |
1468 | put_pcichild(hpdev, hv_pcidev_ref_childlist); | 1468 | put_pcichild(hpdev, hv_pcidev_ref_childlist); |
1469 | list_del(&hpdev->list_entry); | 1469 | list_move_tail(&hpdev->list_entry, &removed); |
1470 | list_add_tail(&hpdev->list_entry, &removed); | ||
1471 | break; | 1470 | break; |
1472 | } | 1471 | } |
1473 | } | 1472 | } |