]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount-setup: remove part of check which is always true 8943/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)
k was set to join_controllers at this point and only incremented, so
it cannot be null at this point.

CID #1390949.

src/core/mount-setup.c

index ac2412bf538f6ef954da22232505d5e5f824839f..79300332a8b0b3027b6c670bfe26023b7ad84d25 100644 (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++) {