From 852cea52ec2e0db63b561ca1fdffb5250eaf737e Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Wed, 21 Jan 2015 17:49:51 +0100 Subject: [PATCH] conf: virDomainDefMaybeAddController tweak return code 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 8792f5ee70..9ff38195cb 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; } -- 2.47.2