Skip to content

Commit

Permalink
test/efd: fix build with clang 15
Browse files Browse the repository at this point in the history
[ upstream commit 94ec062953778f986af4261c7f6eb31af7c84202 ]

This local variable hides the more global one.
The original intent was probably to use the global one.

Fixes: 0e925ae ("app/test: add EFD functional and perf tests")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
david-marchand authored and cpaelzer committed Nov 24, 2022
1 parent c75239d commit 9d04bda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/test/test_efd_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,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 */
Expand Down

0 comments on commit 9d04bda

Please sign in to comment.