]> xenbits.xensource.com Git - libvirt.git/commitdiff
hostdev: Change argument order for virHostdevReattachPCIDevice()
authorAndrea Bolognani <abologna@redhat.com>
Mon, 7 Mar 2016 13:27:23 +0000 (14:27 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 14 Mar 2016 13:55:47 +0000 (14:55 +0100)
The new order aligns better with the virHostdev prefix.

src/util/virhostdev.c

index 03a78ca4cf70462ea8f02446d3301a199a0a457f..a3bf380e96a9d4c8fae384e7c5e729b50185b94d 100644 (file)
@@ -752,7 +752,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.
@@ -892,7 +893,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr hostdev_mgr,
      */
     while (virPCIDeviceListCount(pcidevs) > 0) {
         virPCIDevicePtr dev = virPCIDeviceListStealIndex(pcidevs, 0);
-        virHostdevReattachPCIDevice(dev, hostdev_mgr);
+        virHostdevReattachPCIDevice(hostdev_mgr, dev);
     }
 
     virObjectUnref(pcidevs);