From d05210ffd7720e93758a940079c230692ef976ee Mon Sep 17 00:00:00 2001 From: Weili Qian Date: Fri, 10 Nov 2023 11:52:12 +0800 Subject: [PATCH 43/85] uadk_tool: delete redundant memset zero wd_rsa_del_kg_out() clears the data before freeing the memory. Therefore, no additional memset zero is required before calling wd_rsa_del_kg_out(). Signed-off-by: Weili Qian --- uadk_tool/benchmark/hpre_uadk_benchmark.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/uadk_tool/benchmark/hpre_uadk_benchmark.c b/uadk_tool/benchmark/hpre_uadk_benchmark.c index e722c36..eaa8408 100644 --- a/uadk_tool/benchmark/hpre_uadk_benchmark.c +++ b/uadk_tool/benchmark/hpre_uadk_benchmark.c @@ -1316,16 +1316,6 @@ static void *rsa_uadk_async_run(void *arg) /* clean output buffer remainings in the last time operation */ if (req.op_type == WD_RSA_GENKEY) { - char *data; - int len; - - len = wd_rsa_kg_out_data((void *)req.dst, &data); - if (len < 0) { - HPRE_TST_PRT("failed to wd rsa get key gen out data!\n"); - goto tag_release; - } - memset(data, 0, len); - wd_rsa_del_kg_in(h_sess, req.src); req.src = NULL; wd_rsa_del_kg_out(h_sess, req.dst); -- 2.25.1