From da203ad894a33f1b06c01794947532d1cb36af7d Mon Sep 17 00:00:00 2001 From: Zhangfei Gao Date: Tue, 30 Apr 2024 04:14:18 +0000 Subject: [PATCH 12/15] uadk_digest: solve build warning solve build warning since no {} Signed-off-by: Zhangfei Gao --- src/uadk_digest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uadk_digest.c b/src/uadk_digest.c index 43bbf60..9a583b4 100644 --- a/src/uadk_digest.c +++ b/src/uadk_digest.c @@ -202,10 +202,11 @@ static int digest_soft_init(struct digest_priv_ctx *md_ctx) int app_datasize; /* Allocate a soft ctx for hardware engine */ - if (md_ctx->soft_ctx == NULL) + if (md_ctx->soft_ctx == NULL) { md_ctx->soft_ctx = EVP_MD_CTX_new(); if (md_ctx->soft_ctx == NULL) return 0; + } ctx = md_ctx->soft_ctx; -- 2.43.0