remove malloc casts
[openssl.git] / crypto / evp / bio_enc.c
index faaed4de923111709e613eeeda595f0f727c2912..4409a91242b473eefd8b27e49d18c06d79cb7049 100644 (file)
@@ -112,7 +112,7 @@ static int enc_new(BIO *bi)
 {
     BIO_ENC_CTX *ctx;
 
-    ctx = (BIO_ENC_CTX *)OPENSSL_malloc(sizeof(BIO_ENC_CTX));
+    ctx = OPENSSL_malloc(sizeof(BIO_ENC_CTX));
     if (ctx == NULL)
         return (0);
     EVP_CIPHER_CTX_init(&ctx->cipher);