]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/cgroups/cgfsng.c
cgroups: correctly order variables
[mirror_lxc.git] / src / lxc / cgroups / cgfsng.c
index 78ab8e7e63028a3d36e5feeae5975fbb7a109769..7e16f7a0c4b5bad7ba2fa7484419fb421fbb85db 100644 (file)
@@ -1715,10 +1715,10 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h,
 static int __cg_mount_direct(int type, struct hierarchy *h,
                             const char *controllerpath)
 {
-        int ret;
         __do_free char *controllers = NULL;
         char *fstype = "cgroup2";
         unsigned long flags = 0;
+        int ret;
 
         flags |= MS_NOSUID;
         flags |= MS_NOEXEC;