Commit f112b677 authored by Wei Yongjun's avatar Wei Yongjun Committed by Luis Henriques

PCI: hv: Use list_move_tail() instead of list_del() + list_add_tail()

BugLink: http://bugs.launchpad.net/bugs/1650059

Use list_move_tail() instead of list_del() + list_add_tail().  No
functional change intended
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit 4f1cb01a)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 88998ef9
...@@ -1466,8 +1466,7 @@ static void pci_devices_present_work(struct work_struct *work) ...@@ -1466,8 +1466,7 @@ static void pci_devices_present_work(struct work_struct *work)
if (hpdev->reported_missing) { if (hpdev->reported_missing) {
found = true; found = true;
put_pcichild(hpdev, hv_pcidev_ref_childlist); put_pcichild(hpdev, hv_pcidev_ref_childlist);
list_del(&hpdev->list_entry); list_move_tail(&hpdev->list_entry, &removed);
list_add_tail(&hpdev->list_entry, &removed);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment