[09/11] test/efd: fix build with clang 15

Message ID 20221118085313.2118977-10-david.marchand@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series Fixes for clang 15 |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

David Marchand Nov. 18, 2022, 8:53 a.m. UTC
  This local variable hides the more global one.
The original intent was probably to use the global one.

Fixes: 0e925aef2779 ("app/test: add EFD functional and perf tests")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 app/test/test_efd_perf.c | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/app/test/test_efd_perf.c b/app/test/test_efd_perf.c
index d7f4d83549..4d04ed93e3 100644
--- a/app/test/test_efd_perf.c
+++ b/app/test/test_efd_perf.c
@@ -153,7 +153,6 @@  setup_keys_and_data(struct efd_perf_params *params, unsigned int cycle)
 		qsort(keys, KEYS_TO_ADD, MAX_KEYSIZE, key_compare);
 
 		/* Sift through the list of keys and look for duplicates */
-		int num_duplicates = 0;
 		for (i = 0; i < KEYS_TO_ADD - 1; i++) {
 			if (memcmp(keys[i], keys[i + 1], params->key_size) == 0) {
 				/* This key already exists, try again */