From: Christian Brauner Date: Sat, 17 Feb 2018 18:08:38 +0000 (+0100) Subject: cgfsng: controller_lists_intersect() X-Git-Tag: lxc-2.0.10~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb3401caac2df33f19b7169322b8b4c49c96bf52;p=thirdparty%2Flxc.git cgfsng: controller_lists_intersect() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index b3a853eb9..6e7f6d622 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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; }