mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Remove unused params from qemuDomainDeviceDefValidate
Neither @cfg nor (now) @driver is used in the API, so remove them and mark @opaque as UNUSED. NB: Commit id 'fa3c558596' dropped the unused @qemuCaps which was the last consumer of @driver other than @cfg, but even @cfg was never used even in the original implementation from commit id 'd987f63a'.
This commit is contained in:
parent
dda0da14cd
commit
d143837bd1
@ -3303,10 +3303,8 @@ qemuDomainRedirdevDefValidate(const virDomainRedirdevDef *def)
|
|||||||
static int
|
static int
|
||||||
qemuDomainDeviceDefValidate(const virDomainDeviceDef *dev,
|
qemuDomainDeviceDefValidate(const virDomainDeviceDef *dev,
|
||||||
const virDomainDef *def ATTRIBUTE_UNUSED,
|
const virDomainDef *def ATTRIBUTE_UNUSED,
|
||||||
void *opaque)
|
void *opaque ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virQEMUDriverPtr driver = opaque;
|
|
||||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
if (dev->type == VIR_DOMAIN_DEVICE_NET) {
|
if (dev->type == VIR_DOMAIN_DEVICE_NET) {
|
||||||
@ -3390,7 +3388,6 @@ qemuDomainDeviceDefValidate(const virDomainDeviceDef *dev,
|
|||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
cleanup:
|
cleanup:
|
||||||
virObjectUnref(cfg);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user