[PATCH 13/24] hostdev: Change argument order for virHostdevReattachPCIDevice()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The new order aligns better with the virHostdev prefix.
---
 src/util/virhostdev.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index d3e15b7..e2accb4 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -750,7 +750,8 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
  * are locked
  */
 static void
-virHostdevReattachPCIDevice(virPCIDevicePtr dev, virHostdevManagerPtr mgr)
+virHostdevReattachPCIDevice(virHostdevManagerPtr mgr,
+                            virPCIDevicePtr dev)
 {
     /* If the device is not managed and was attached to guest
      * successfully, it must have been inactive.
@@ -890,7 +891,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr hostdev_mgr,
      */
     while (virPCIDeviceListCount(pcidevs) > 0) {
         virPCIDevicePtr dev = virPCIDeviceListStealIndex(pcidevs, 0);
-        virHostdevReattachPCIDevice(dev, hostdev_mgr);
+        virHostdevReattachPCIDevice(hostdev_mgr, dev);
     }
 
     virObjectUnref(pcidevs);
-- 
2.5.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]