domain_conf: make virDomainControllerDriverFormat() void

This function always returns zero, so it might as well be void.

Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Matt Coleman 2020-11-05 22:32:48 -05:00 committed by Michal Privoznik
parent e16ca44ab3
commit 154b3f4256

View File

@ -25918,7 +25918,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
}
static int
static void
virDomainControllerDriverFormat(virBufferPtr buf,
virDomainControllerDefPtr def)
{
@ -25944,8 +25944,6 @@ virDomainControllerDriverFormat(virBufferPtr buf,
virDomainVirtioOptionsFormat(&driverBuf, def->virtio);
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
return 0;
}
@ -26092,8 +26090,7 @@ virDomainControllerDefFormat(virBufferPtr buf,
}
}
if (virDomainControllerDriverFormat(&childBuf, def) < 0)
return -1;
virDomainControllerDriverFormat(&childBuf, def);
virDomainDeviceInfoFormat(&childBuf, &def->info, flags);