提交 4f1cb01a 编写于 作者: W Wei Yongjun 提交者: Bjorn Helgaas

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: NWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 29b4817d
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册