* [PATCH -next] PCI: hv: Use list_move_tail instead of list_del/list_add_tail
@ 2016-07-28 16:16 Wei Yongjun
2016-08-22 19:36 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-07-28 16:16 UTC (permalink / raw)
To: K . Y . Srinivasan, Haiyang Zhang, Bjorn Helgaas
Cc: Wei Yongjun, devel, linux-pci
Using list_move_tail() instead of list_del() + list_add_tail().
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
---
drivers/pci/host/pci-hyperv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
index 6955ffdb..a8deeca 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;
}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] PCI: hv: Use list_move_tail instead of list_del/list_add_tail
2016-07-28 16:16 [PATCH -next] PCI: hv: Use list_move_tail instead of list_del/list_add_tail Wei Yongjun
@ 2016-08-22 19:36 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2016-08-22 19:36 UTC (permalink / raw)
To: Wei Yongjun
Cc: K . Y . Srinivasan, Haiyang Zhang, Bjorn Helgaas, devel,
linux-pci
On Thu, Jul 28, 2016 at 04:16:48PM +0000, Wei Yongjun wrote:
> Using list_move_tail() instead of list_del() + list_add_tail().
>
> Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Applied to pci/host-hv for v4.9, thanks!
> ---
> drivers/pci/host/pci-hyperv.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
> index 6955ffdb..a8deeca 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;
> }
> }
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-22 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 16:16 [PATCH -next] PCI: hv: Use list_move_tail instead of list_del/list_add_tail Wei Yongjun
2016-08-22 19:36 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).