1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-30 01:47:24 +03:00

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

View File

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