[rtems commit] libtest: Remove superfluous NULL pointer check
Sebastian Huber
sebh at rtems.org
Wed Jan 27 18:11:28 UTC 2021
Module: rtems
Branch: master
Commit: e269e389eacc6d2f3c1481556b998de680d8be8d
Changeset: http://git.rtems.org/rtems/commit/?id=e269e389eacc6d2f3c1481556b998de680d8be8d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 27 16:42:14 2021 +0100
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 0f19f22..02f5903 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);
}
More information about the vc
mailing list