]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cgfsng: controller_lists_intersect()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:08:38 +0000 (19:08 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:08:38 +0000 (19:08 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index bdb6f666bd57794f50e54277ffc29b681fc63512..b67f41a81926ddb368adf1839d1168e616535601 100644 (file)
@@ -773,9 +773,8 @@ static bool cg_legacy_handle_cpuset_hierarchy(struct hierarchy *h, char *cgname)
        return true;
 }
 
-/*
- * Given two null-terminated lists of strings, return true if any string
- * is in both.
+/* Given two null-terminated lists of strings, return true if any string is in
+ * both.
  */
 static bool controller_lists_intersect(char **l1, char **l2)
 {
@@ -788,6 +787,7 @@ static bool controller_lists_intersect(char **l1, char **l2)
                if (string_in_list(l2, l1[i]))
                        return true;
        }
+
        return false;
 }