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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-05-10 02:03:23 +02:00
parent 027cc9c92e
commit f1470e424b

View file

@ -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++) {