Since we don't necessarily care about the status return, just add an
ignore_value to the calls for virDomainDefClear* calls
Found by Coverity
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/conf/domain_conf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 87a9a8d..3cf1f59 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -4736,17 +4736,17 @@ virDomainDefValidate(virDomainDefPtr def,
void virDomainDefClearPCIAddresses(virDomainDefPtr def)
{
- virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearPCIAddress, NULL);
+ ignore_value(virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearPCIAddress,
NULL));
}
void virDomainDefClearCCWAddresses(virDomainDefPtr def)
{
- virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearCCWAddress, NULL);
+ ignore_value(virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearCCWAddress,
NULL));
}
void virDomainDefClearDeviceAliases(virDomainDefPtr def)
{
- virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearAlias, NULL);
+ ignore_value(virDomainDeviceInfoIterate(def, virDomainDeviceInfoClearAlias, NULL));
}
--
2.5.5