提交 852cea52 编写于 作者: E Erik Skultety 提交者: Ján Tomko

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
上级 2fbfb3ac
......@@ -12416,7 +12416,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
return -1;
}
return 0;
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册