From e269e389eacc6d2f3c1481556b998de680d8be8d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Jan 2021 16:42:14 +0100 Subject: [PATCH] libtest: Remove superfluous NULL pointer check This fix relates to CID 1468683 (REVERSE_INULL). --- cpukit/libtest/t-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libtest/t-test.c b/cpukit/libtest/t-test.c index 0f19f22c31..02f59033d4 100644 --- a/cpukit/libtest/t-test.c +++ b/cpukit/libtest/t-test.c @@ -1232,7 +1232,7 @@ T_push_fixture(T_fixture_node *node, const T_fixture *fixture) memory_order_relaxed); ctx->fixtures = node; - if (fixture != NULL && fixture->setup != NULL) { + if (fixture->setup != NULL) { (*fixture->setup)(context); }