Ver Fonte

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>
Wei Yongjun há 9 anos atrás
pai
commit
4f1cb01a78
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      drivers/pci/host/pci-hyperv.c

+ 1 - 2
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;
 			}
 		}