cgfsng: controller_lists_intersect()

parent 7793add3
...@@ -773,9 +773,8 @@ static bool cg_legacy_handle_cpuset_hierarchy(struct hierarchy *h, char *cgname) ...@@ -773,9 +773,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)
{ {
...@@ -788,6 +787,7 @@ 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])) 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