From: Andrea Bolognani Date: Mon, 7 Mar 2016 13:14:54 +0000 (+0100) Subject: hostdev: Remove inaccurate comment X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a67b14a97516e796ecbb1da0b5a9b81985c645a0;p=libvirt.git hostdev: Remove inaccurate comment The comment claimed that virPCIDeviceReattach() does not reattach a device to the host driver; except it actually does, so the comment is just confusing and we're better off removing it. --- diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c index adc4eec04f..5be61cdfa4 100644 --- a/src/util/virhostdev.c +++ b/src/util/virhostdev.c @@ -727,9 +727,6 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr, virPCIDevicePtr dev = virPCIDeviceListGet(pcidevs, i); if (virPCIDeviceGetManaged(dev)) { - /* NB: This doesn't actually re-bind to original driver, just - * unbinds from the stub driver - */ VIR_DEBUG("Reattaching managed PCI device %s", virPCIDeviceGetName(dev)); ignore_value(virPCIDeviceReattach(dev,