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
This commit is contained in:
Erik Skultety 2015-01-21 17:49:51 +01:00 committed by Ján Tomko
parent 2fbfb3ac41
commit 852cea52ec
1 changed files with 1 additions and 1 deletions

View File

@ -12416,7 +12416,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
return -1;
}
return 0;
return 1;
}