mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
2fbfb3ac41
commit
852cea52ec
|
@ -12416,7 +12416,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
|
|||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue