From: Zbigniew Jędrzejewski-Szmek Date: Thu, 10 May 2018 00:03:23 +0000 (+0200) Subject: core/mount-setup: remove part of check which is always true X-Git-Tag: v239~287^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8943%2Fhead;p=thirdparty%2Fsystemd.git core/mount-setup: remove part of check which is always true k was set to join_controllers at this point and only incremented, so it cannot be null at this point. CID #1390949. --- diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index ac2412bf538..79300332a8b 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -279,7 +279,7 @@ int mount_cgroup_controllers(char ***join_controllers) { if (strv_find(*k, controller)) break; - if (k && *k) { + if (*k) { char **i, **j; for (i = *k, j = *k; *i; i++) {