free NULL cleanup 11
[oweals/openssl.git] / crypto / cmac / cm_ameth.c
index 98634c99e90b0328d7f5554ecc64965bc771d9dc..07853a63d367ec8e9e44863a76389dd46a0ac71e 100644 (file)
@@ -70,8 +70,7 @@ static int cmac_size(const EVP_PKEY *pkey)
 static void cmac_key_free(EVP_PKEY *pkey)
 {
     CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
-    if (cmctx)
-        CMAC_CTX_free(cmctx);
+    CMAC_CTX_free(cmctx);
 }
 
 const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = {