]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Don't remove the "return 0"
authorOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 15:02:36 +0000 (23:02 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 21 May 2013 15:08:57 +0000 (23:08 +0800)
Commit f60a50c7957 intended to remove the warning only, but not with
the "return 0" together.

src/qemu/qemu_cgroup.c

index ff9a075133a97f58aa997de979d2c562bca2ddf1..fb88802c717fcbeee76e3ce1b5e905959557cf45 100644 (file)
@@ -471,6 +471,8 @@ qemuSetupMemoryCgroup(virDomainObjPtr vm)
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                            _("Memory cgroup is not available on this host"));
             return -1;
+        } else {
+            return 0;
         }
     }