conf: disk: Don't initialize fields allocated by calloc

All the fields were initialized to 0.
This commit is contained in:
Peter Krempa 2016-04-11 16:06:07 +02:00
parent dcf02a704f
commit 4bbac0f9b9

View File

@ -6742,14 +6742,6 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
if (!(def = virDomainDiskDefNew(xmlopt)))
return NULL;
def->geometry.cylinders = 0;
def->geometry.heads = 0;
def->geometry.sectors = 0;
def->geometry.trans = VIR_DOMAIN_DISK_TRANS_DEFAULT;
def->blockio.logical_block_size = 0;
def->blockio.physical_block_size = 0;
ctxt->node = node;
type = virXMLPropString(node, "type");