From 688244964296f60dbeb630c607cccfdab79b5b6a Mon Sep 17 00:00:00 2001 From: Ciara Power Date: Thu, 12 Aug 2021 14:24:34 +0000 Subject: [PATCH] examples/fips_validation: remove unused allocation [ upstream commit 25d392e1999b3d766f3a9f142372cc1220fa2c97 ] The val.val pointer is allocated memory, however this memory is then freed in get_writeback_data() without being used beforehand. The pointer is then allocated memory again before use, so the very first allocation is removed as it was unnecessary. Fixes: f4797bae0050 ("examples/fips_validation: support plain SHA") Signed-off-by: Ciara Power Acked-by: Fan Zhang --- examples/fips_validation/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 2f8238886b..5a4a25cb61 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -1373,7 +1373,6 @@ fips_mct_sha_test(void) int ret; uint32_t i, j; - val.val = rte_malloc(NULL, (MAX_DIGEST_SIZE*SHA_MD_BLOCK), 0); for (i = 0; i < SHA_MD_BLOCK; i++) md[i].val = rte_malloc(NULL, (MAX_DIGEST_SIZE*2), 0);