[libvirt] [PATCH 2/5] conf: virDomainDefMaybeAddController tweak return code
Erik Skultety
eskultet at redhat.com
Wed Jan 21 16:49:51 UTC 2015
Previously the function returned either -1 in case of an error or 0 on
success. However, we should also distinguish between a case we
successfully added a controller and a case there wasn't a need to add any
controller
---
src/conf/domain_conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 8792f5e..9ff3819 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -12416,7 +12416,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
return -1;
}
- return 0;
+ return 1;
}
--
1.9.3
More information about the libvir-list
mailing list