mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
qemuBuildNicDevProps: Remove unused 'tapfd' infrastructure
All callers pass NULL/0. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c613b1a211
commit
c0d25738b2
@ -4208,8 +4208,6 @@ qemuBuildNicDevProps(virDomainDef *def,
|
||||
|
||||
virJSONValue *
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
const char *slirpfd)
|
||||
{
|
||||
virDomainNetType netType = virDomainNetGetActualType(net);
|
||||
@ -4253,12 +4251,6 @@ qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
|
||||
if (nfds > 1)
|
||||
tapfd_field = "s:fds";
|
||||
} else {
|
||||
for (i = 0; i < tapfdSize; i++)
|
||||
virBufferAsprintf(&buf, "%s:", tapfd[i]);
|
||||
|
||||
if (tapfdSize > 1)
|
||||
tapfd_field = "s:fds";
|
||||
}
|
||||
|
||||
virBufferTrim(&buf, ":");
|
||||
@ -8942,7 +8934,6 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
||||
return -1;
|
||||
|
||||
if (!(hostnetprops = qemuBuildHostNetProps(net,
|
||||
NULL, 0,
|
||||
slirpfdName)))
|
||||
goto cleanup;
|
||||
|
||||
|
@ -87,8 +87,6 @@ qemuBuildChannelGuestfwdNetdevProps(virDomainChrDef *chr);
|
||||
|
||||
virJSONValue *
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
const char *slirpfd);
|
||||
|
||||
int
|
||||
|
@ -1380,7 +1380,6 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
||||
goto cleanup;
|
||||
|
||||
if (!(netprops = qemuBuildHostNetProps(net,
|
||||
NULL, 0,
|
||||
slirpfdName)))
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user