From: Michal Privoznik Date: Fri, 7 Sep 2018 12:04:54 +0000 (+0200) Subject: qemuProcessBuildDestroyMemoryPathsImpl: Don't overwrite error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=577e68dff90e617a20165dfede0390faa1e24031;p=libvirt.git qemuProcessBuildDestroyMemoryPathsImpl: Don't overwrite error The qemuSecurityDomainSetPathLabel() function reports perfect error itself. Do not overwrite it to something less meaningful. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 960c3ed011..eb9904b7ba 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -3669,11 +3669,8 @@ qemuProcessBuildDestroyMemoryPathsImpl(virQEMUDriverPtr driver, } if (qemuSecurityDomainSetPathLabel(driver->securityManager, - def, path, true) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to label %s"), path); + def, path, true) < 0) return -1; - } } else { if (virFileDeleteTree(path) < 0) return -1;