Fix aix compile error in cmp_ctx_test.c
[openssl.git] / test / drbg_extra_test.c
index 8d7b8fbf8f4b3d4e3242755badfc050e896e2864..e7c0d77d7f60680cb4744626f12c5cbc6a139a52 100644 (file)
@@ -75,10 +75,8 @@ static int run_extra_kat(const struct drbg_extra_kat *td)
         failures++;
 
 err:
-    if (drbg != NULL) {
-        RAND_DRBG_uninstantiate(drbg);
-        RAND_DRBG_free(drbg);
-    }
+    RAND_DRBG_uninstantiate(drbg);
+    RAND_DRBG_free(drbg);
     return failures == 0;
 }