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-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=59336c25be1eee27d2ba58f95d6e6d516f64cdeb;p=elogind.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 d98507db1..ac8c32c13 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -294,7 +294,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++) {