free NULL cleanup 5a
[oweals/openssl.git] / crypto / ec / ecp_nistp256.c
index b42e96a8149c5f374153c6a66ea9679a47221c61..2f394bf88e6b2be005ecfca410cdef71146ecc49 100644 (file)
@@ -1815,7 +1815,7 @@ const EC_METHOD *EC_GFp_nistp256_method(void)
 static NISTP256_PRE_COMP *nistp256_pre_comp_new()
 {
     NISTP256_PRE_COMP *ret = NULL;
-    ret = (NISTP256_PRE_COMP *) OPENSSL_malloc(sizeof *ret);
+    ret = OPENSSL_malloc(sizeof *ret);
     if (!ret) {
         ECerr(EC_F_NISTP256_PRE_COMP_NEW, ERR_R_MALLOC_FAILURE);
         return ret;