From b55b66bcea7895f0035920b657e7d9bca35798fc Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sun, 25 Feb 2024 13:27:12 -0800 Subject: [PATCH] tests: kvlist: fix conditionals Signed-off-by: Eduardo Silva --- tests/kvlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kvlist.c b/tests/kvlist.c index 621f596..fce4319 100644 --- a/tests/kvlist.c +++ b/tests/kvlist.c @@ -300,7 +300,7 @@ static void insert_reference() return; } - if (!TEST_CHECK(var->data.as_reference == &expect_type) == 0) { + if (!TEST_CHECK(var->data.as_reference == &expect_type)) { TEST_MSG("variant value error.got=%p expect=%p", var->data.as_reference, &expect_type); cfl_kvlist_destroy(list); return; @@ -733,7 +733,7 @@ static void insert_reference_s() return; } - if (!TEST_CHECK(var->data.as_reference == &expect_type) == 0) { + if (!TEST_CHECK(var->data.as_reference == &expect_type)) { TEST_MSG("variant value error.got=%p expect=%p", var->data.as_reference, &expect_type); cfl_kvlist_destroy(list); return;