]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuProcessBuildDestroyMemoryPathsImpl: Don't overwrite error
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Sep 2018 12:04:54 +0000 (14:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Sep 2018 15:23:38 +0000 (17:23 +0200)
The qemuSecurityDomainSetPathLabel() function reports perfect
error itself. Do not overwrite it to something less meaningful.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c

index 960c3ed01161875b6f8a4970e77e9aeca064bd68..eb9904b7babf6a600e78f4c4ed0d106b3dd1ac7a 100644 (file)
@@ -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;