mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Drop unused qemuOpenPCIConfig()
After previous commits, the function is not used anymore. Remove it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
85b938c666
commit
c25bc5c831
@ -4878,28 +4878,6 @@ qemuBuildVideoCommandLine(virCommandPtr cmd,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuOpenPCIConfig(virDomainHostdevDefPtr dev)
|
||||
{
|
||||
virDomainHostdevSubsysPCIPtr pcisrc = &dev->source.subsys.u.pci;
|
||||
char *path = NULL;
|
||||
int configfd = -1;
|
||||
|
||||
if (virAsprintf(&path, "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/config",
|
||||
pcisrc->addr.domain, pcisrc->addr.bus,
|
||||
pcisrc->addr.slot, pcisrc->addr.function) < 0)
|
||||
return -1;
|
||||
|
||||
configfd = open(path, O_RDWR, 0);
|
||||
|
||||
if (configfd < 0)
|
||||
virReportSystemError(errno, _("Failed opening %s"), path);
|
||||
|
||||
VIR_FREE(path);
|
||||
|
||||
return configfd;
|
||||
}
|
||||
|
||||
char *
|
||||
qemuBuildPCIHostdevDevStr(const virDomainDef *def,
|
||||
virDomainHostdevDefPtr dev,
|
||||
|
@ -157,8 +157,6 @@ int qemuBuildRNGBackendProps(virDomainRNGDefPtr rng,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
virJSONValuePtr *props);
|
||||
|
||||
int qemuOpenPCIConfig(virDomainHostdevDefPtr dev);
|
||||
|
||||
/* Current, best practice */
|
||||
char *qemuBuildUSBHostdevDevStr(const virDomainDef *def,
|
||||
virDomainHostdevDefPtr dev,
|
||||
|
Loading…
Reference in New Issue
Block a user