]> git.ipfire.org Git - thirdparty/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>
Wed, 21 Feb 2018 14:48:20 +0000 (15:48 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index b3a853eb9ac5a5852b21d008afb2393a3be6e500..6e7f6d6228ac0daecce1af9be6deee68124b8623 100644 (file)
@@ -764,9 +764,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)
 {
@@ -779,6 +778,7 @@ static bool controller_lists_intersect(char **l1, char **l2)
                if (string_in_list(l2, l1[i]))
                        return true;
        }
+
        return false;
 }