From: Zbigniew Jędrzejewski-Szmek Date: Thu, 27 Aug 2020 07:58:58 +0000 (+0200) Subject: test-path: remove unnecessary check X-Git-Tag: v247-rc1~345^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87d0661a0e26cdca6207f3ccd81013b85824745;p=thirdparty%2Fsystemd.git test-path: remove unnecessary check test points to an array, so it canont be NULL at this point. --- diff --git a/src/test/test-path.c b/src/test/test-path.c index 1075f31bc6c..cf89d89482f 100644 --- a/src/test/test-path.c +++ b/src/test/test-path.c @@ -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;