mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
qemu_conf: Properly check for retval of qemuDomainNamespaceAvailable
This function is returning a boolean therefore check for '< 0' makes no sense. It should have been '!qemuDomainNamespaceAvailable'. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b57bd206b9
commit
27ac5f3741
@ -837,7 +837,7 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (qemuDomainNamespaceAvailable(ns) < 0) {
|
||||
if (!qemuDomainNamespaceAvailable(ns)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("%s namespace is not available"),
|
||||
namespaces[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user