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:
parent
2fbfb3ac41
commit
852cea52ec
@ -12416,7 +12416,7 @@ virDomainDefMaybeAddController(virDomainDefPtr def,
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user