From 8728eaf93f03e0ef41cfdef49cd8d20d1be70132 Mon Sep 17 00:00:00 2001 From: Ethan Looney Date: Fri, 30 Oct 2020 13:19:12 -0600 Subject: [PATCH] Removed duplicate return check and added return check --- tests/api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index a742b666f..864d999f0 100644 --- a/tests/api.c +++ b/tests/api.c @@ -29202,10 +29202,10 @@ static int test_wolfSSL_GetLoggingCb (void) } #endif if (ret == 0) { + if (wolfSSL_GetLoggingCb() == NULL) { + ret = 0; + } if (ret == 0) { - if (wolfSSL_GetLoggingCb() == NULL) { - ret = 0; - } if (wolfSSL_GetLoggingCb() != NULL) { ret = -1; }