mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemuBuildHostNetStr: remove unused cfg
As of commit 2d80fbb14d
this variable
is unused.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
e6fd586197
commit
9ec3ec30a6
@ -3906,7 +3906,7 @@ qemuBuildNicDevStr(virDomainDefPtr def,
|
||||
|
||||
char *
|
||||
qemuBuildHostNetStr(virDomainNetDefPtr net,
|
||||
virQEMUDriverPtr driver,
|
||||
virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
@ -3916,7 +3916,6 @@ qemuBuildHostNetStr(virDomainNetDefPtr net,
|
||||
bool is_tap = false;
|
||||
VIR_AUTOCLEAN(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
||||
virDomainNetType netType = virDomainNetGetActualType(net);
|
||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
||||
size_t i;
|
||||
char *ret = NULL;
|
||||
|
||||
@ -4052,7 +4051,6 @@ qemuBuildHostNetStr(virDomainNetDefPtr net,
|
||||
|
||||
ret = virBufferContentAndReset(&buf);
|
||||
cleanup:
|
||||
virObjectUnref(cfg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user