]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-path: remove unnecessary check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Aug 2020 07:58:58 +0000 (09:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Aug 2020 18:20:23 +0000 (20:20 +0200)
test points to an array, so it canont be NULL at this point.

src/test/test-path.c

index 1075f31bc6c720c7b55ebdbee3217b4a63b9bf0f..cf89d89482fdcf8db05c7028b3ed779d7303bdab 100644 (file)
@@ -350,7 +350,7 @@ int main(int argc, char *argv[]) {
         assert_se(set_unit_path(test_path) >= 0);
         assert_se(runtime_dir = setup_fake_runtime_dir());
 
-        for (const test_function_t *test = tests; test && *test; test++) {
+        for (const test_function_t *test = tests; *test; test++) {
                 Manager *m = NULL;
                 int r;