From: Andrea Bolognani Date: Mon, 7 Mar 2016 13:27:23 +0000 (+0100) Subject: hostdev: Change argument order for virHostdevReattachPCIDevice() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e57e9413ac77a887395a75417038448d331bd5ca;p=libvirt.git hostdev: Change argument order for virHostdevReattachPCIDevice() The new order aligns better with the virHostdev prefix. --- diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c index 03a78ca4cf..a3bf380e96 100644 --- a/src/util/virhostdev.c +++ b/src/util/virhostdev.c @@ -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);