Skip to content

Commit 07b4ccc

Browse files
author
Test User
committed
Remove uneeded null checks
1 parent 61d4e16 commit 07b4ccc

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

test/test_rsa.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#include "unit.h"
22+
#include <wolfprovider/wp_fips.h>
2223
#include <wolfssl/wolfcrypt/asn.h>
2324

2425
#include <openssl/store.h>

test/unit.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,10 @@ int main(int argc, char* argv[])
666666
err = run_tests(runAll);
667667
}
668668

669-
if (osslProv != NULL) {
670-
OSSL_PROVIDER_unload(osslProv);
671-
}
672-
if (osslLibCtx != NULL) {
673-
OSSL_LIB_CTX_free(osslLibCtx);
674-
}
675-
if (wpProv != NULL) {
676-
OSSL_PROVIDER_unload(wpProv);
677-
}
678-
if (wpLibCtx != NULL) {
679-
OSSL_LIB_CTX_free(wpLibCtx);
680-
}
669+
OSSL_PROVIDER_unload(osslProv);
670+
OSSL_LIB_CTX_free(osslLibCtx);
671+
OSSL_PROVIDER_unload(wpProv);
672+
OSSL_LIB_CTX_free(wpLibCtx);
681673

682674
OPENSSL_cleanup();
683675

0 commit comments

Comments
 (0)