chiark / gitweb /
core/mount-setup: remove part of check which is always true
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +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 d98507db1928463cf97469a51f8baeeb1db64b98..ac8c32c13954350fa9f034109abf2b0cab3e04f8 100644 (file)
@@ -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++) {