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:
Peter Krempa 2022-05-10 15:52:50 +02:00
parent c613b1a211
commit c0d25738b2
3 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -87,8 +87,6 @@ qemuBuildChannelGuestfwdNetdevProps(virDomainChrDef *chr);
virJSONValue *
qemuBuildHostNetProps(virDomainNetDef *net,
char **tapfd,
size_t tapfdSize,
const char *slirpfd);
int

View File

@ -1380,7 +1380,6 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
goto cleanup;
if (!(netprops = qemuBuildHostNetProps(net,
NULL, 0,
slirpfdName)))
goto cleanup;