[PATCH 7/9] conf: Add ignore_value to virDomainDeviceInfoIterate calls for Clear helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]