mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
virDomainDiskDefDriverParseXML: Fix usage of virXMLPropUInt
VIR_XML_PROP_NONE has value of 0 so it's pointless to include it in an binary-or expression. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e9bf68848c
commit
84960ca118
@ -8923,9 +8923,7 @@ virDomainDiskDefDriverParseXML(virDomainDiskDef *def,
|
|||||||
VIR_XML_PROP_NONZERO, &def->discard) < 0)
|
VIR_XML_PROP_NONZERO, &def->discard) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (virXMLPropUInt(cur, "iothread", 10,
|
if (virXMLPropUInt(cur, "iothread", 10, VIR_XML_PROP_NONZERO, &def->iothread) < 0)
|
||||||
VIR_XML_PROP_NONE | VIR_XML_PROP_NONZERO,
|
|
||||||
&def->iothread) < 0)
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if ((tmp = virXMLPropString(cur, "type"))) {
|
if ((tmp = virXMLPropString(cur, "type"))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user