]> xenbits.xensource.com Git - libvirt.git/commitdiff
hostdev: Remove inaccurate comment
authorAndrea Bolognani <abologna@redhat.com>
Mon, 7 Mar 2016 13:14:54 +0000 (14:14 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 8 Mar 2016 09:42:26 +0000 (10:42 +0100)
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.

src/util/virhostdev.c

index adc4eec04fe2a76e6956c31c773b4e2aca6f2bbc..5be61cdfa4ec5c78398d6df2e4a9b5946e5079da 100644 (file)
@@ -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,