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

[libvirt] [PATCH] conf: fix build by using ret variable when returning from functions



Introduced-by: c3a208af0d894daaa840177b749a0ecf35445a4b
Reported-by: Radoslaw Biernacki <radoslaw biernacki linaro org>
Signed-off-by: Pavel Hrdina <phrdina redhat com>
---

Pushed under build-breaker rule.

 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 8cb9b2719c..13874837c2 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -24512,7 +24512,7 @@ virDomainControllerDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childBuf);
 
-    return 0;
+    return ret;
 }
 
 
@@ -25912,7 +25912,7 @@ virDomainSoundDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childBuf);
 
-    return 0;
+    return ret;
 }
 
 
@@ -25976,7 +25976,7 @@ virDomainMemballoonDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childrenBuf);
 
-    return 0;
+    return ret;
 }
 
 static int
-- 
2.19.1


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