Use p==NULL not !p (in if statements, mainly)
[openssl.git] / crypto / evp / pmeth_gn.c
index a5ae48484953b82909585750d84d8b4734245658..78467c98f7b8d748b090d1133e89a3ccf920e7ad 100644 (file)
@@ -207,7 +207,6 @@ EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e,
     if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0)
         goto merr;
  merr:
-    if (mac_ctx)
-        EVP_PKEY_CTX_free(mac_ctx);
+    EVP_PKEY_CTX_free(mac_ctx);
     return mac_key;
 }