cgfsng: controller_lists_intersect()

parent 6c6e8d2f
...@@ -764,9 +764,8 @@ static bool cg_legacy_handle_cpuset_hierarchy(struct hierarchy *h, char *cgname) ...@@ -764,9 +764,8 @@ static bool cg_legacy_handle_cpuset_hierarchy(struct hierarchy *h, char *cgname)
return true; return true;
} }
/* /* Given two null-terminated lists of strings, return true if any string is in
* Given two null-terminated lists of strings, return true if any string * both.
* is in both.
*/ */
static bool controller_lists_intersect(char **l1, char **l2) static bool controller_lists_intersect(char **l1, char **l2)
{ {
...@@ -779,6 +778,7 @@ 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])) if (string_in_list(l2, l1[i]))
return true; return true;
} }
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment