summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-10 02:03:23 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit59336c25be1eee27d2ba58f95d6e6d516f64cdeb (patch)
tree0e7f3374db12e02b6b9217082a8265bedc972aaa
parent0053a470b479dffce7b4a3b3b58181831f8980e3 (diff)
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.
-rw-r--r--src/core/mount-setup.c2
1 files changed, 1 insertions, 1 deletions
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++) {