From a67b14a97516e796ecbb1da0b5a9b81985c645a0 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Mon, 7 Mar 2016 14:14:54 +0100 Subject: [PATCH] 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. --- src/util/virhostdev.c | 3 --- 1 file changed, 3 deletions(-) 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, -- GitLab