#undef FORMAT_IOTUNE
-static int
+static void
virDomainDiskDefFormatDriver(virBufferPtr buf,
virDomainDiskDefPtr disk)
{
virDomainVirtioOptionsFormat(&driverBuf, disk->virtio);
virXMLFormatElement(buf, "driver", &driverBuf, NULL);
- return 0;
}
virBufferAddLit(buf, ">\n");
virBufferAdjustIndent(buf, 2);
- if (virDomainDiskDefFormatDriver(buf, def) < 0)
- return -1;
+ virDomainDiskDefFormatDriver(buf, def);
/* Format as child of <disk> if defined there; otherwise,
* if defined as child of <source>, then format later */