提交 51f27ef7 编写于 作者: M Michal Privoznik

virpci: Rename virPCIDevice{Bind,Unbind}FromStubWithOverride

After my previous patches we have virPCIDeviceBindToStub() and
virPCIDeviceUnbindFromStub() which really do nothing but call
virPCIDeviceBindToStubWithOverride() and
virPCIDeviceUnbindFromStubWithOverride() respectively.
Drop "WithOverride" from the names and drop the thin wrappers.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 8e0326d9
...@@ -1136,7 +1136,7 @@ virPCIDeviceBindWithDriverOverride(virPCIDevicePtr dev, ...@@ -1136,7 +1136,7 @@ virPCIDeviceBindWithDriverOverride(virPCIDevicePtr dev,
} }
static int static int
virPCIDeviceUnbindFromStubWithOverride(virPCIDevicePtr dev) virPCIDeviceUnbindFromStub(virPCIDevicePtr dev)
{ {
if (!dev->unbind_from_stub) { if (!dev->unbind_from_stub) {
VIR_DEBUG("Unbind from stub skipped for PCI device %s", dev->name); VIR_DEBUG("Unbind from stub skipped for PCI device %s", dev->name);
...@@ -1147,13 +1147,7 @@ virPCIDeviceUnbindFromStubWithOverride(virPCIDevicePtr dev) ...@@ -1147,13 +1147,7 @@ virPCIDeviceUnbindFromStubWithOverride(virPCIDevicePtr dev)
} }
static int static int
virPCIDeviceUnbindFromStub(virPCIDevicePtr dev) virPCIDeviceBindToStub(virPCIDevicePtr dev)
{
return virPCIDeviceUnbindFromStubWithOverride(dev);
}
static int
virPCIDeviceBindToStubWithOverride(virPCIDevicePtr dev)
{ {
const char *stubDriverName; const char *stubDriverName;
VIR_AUTOFREE(char *) stubDriverPath = NULL; VIR_AUTOFREE(char *) stubDriverPath = NULL;
...@@ -1192,12 +1186,6 @@ virPCIDeviceBindToStubWithOverride(virPCIDevicePtr dev) ...@@ -1192,12 +1186,6 @@ virPCIDeviceBindToStubWithOverride(virPCIDevicePtr dev)
return 0; return 0;
} }
static int
virPCIDeviceBindToStub(virPCIDevicePtr dev)
{
return virPCIDeviceBindToStubWithOverride(dev);
}
/* virPCIDeviceDetach: /* virPCIDeviceDetach:
* *
* Detach this device from the host driver, attach it to the stub * Detach this device from the host driver, attach it to the stub
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册