]> xenbits.xensource.com Git - libvirt.git/commit
pci: Remove redundant parameter from virPCIDeviceBindToStub()
authorAndrea Bolognani <abologna@redhat.com>
Thu, 22 Oct 2015 16:15:11 +0000 (18:15 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 21 Dec 2015 10:04:37 +0000 (11:04 +0100)
commit51f39c704807a9df01a1cacc2575c8426d6d1400
tree423f1e4e4e00662a13e7bc235db36373b789f401
parent3245e1783c3fa0a3756a2de7009c135a424ed030
pci: Remove redundant parameter from virPCIDeviceBindToStub()

This internal function supports, in theory, binding to a different
stub driver than the one the PCI device has been configured to use.

In practice, it is only ever called like

  virPCIDeviceBindToStub(dev, dev->stubDriver);

which makes its second parameter redundant. Get rid of it, along
with the extra string copy required to support it.
src/util/virpci.c