1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

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)) if (strv_find(*k, controller))
break; break;
if (k && *k) { if (*k) {
char **i, **j; char **i, **j;
for (i = *k, j = *k; *i; i++) { for (i = *k, j = *k; *i; i++) {