patches for DPDK stable branches
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, Byron Marohn <byron.marohn@intel.com>,
	Yipeng Wang <yipeng1.wang@intel.com>,
	Saikrishna Edupuganti <saikrishna.edupuganti@intel.com>,
	Karla Saur <karla.saur@intel.com>,
	Christian Maciocco <christian.maciocco@intel.com>,
	Pablo de Lara <pablo.de.lara.guarch@intel.com>
Subject: [PATCH 09/11] test/efd: fix build with clang 15
Date: Fri, 18 Nov 2022 09:53:11 +0100	[thread overview]
Message-ID: <20221118085313.2118977-10-david.marchand@redhat.com> (raw)
In-Reply-To: <20221118085313.2118977-1-david.marchand@redhat.com>

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(-)

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 */
-- 
2.38.1


  parent reply	other threads:[~2022-11-18  8:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20221118085313.2118977-1-david.marchand@redhat.com>
2022-11-18  8:53 ` [PATCH 01/11] service: " David Marchand
2022-11-18 14:47   ` Van Haaren, Harry
2022-11-18  8:53 ` [PATCH 02/11] vhost: " David Marchand
2022-11-18 10:23   ` Maxime Coquelin
2022-11-18  8:53 ` [PATCH 03/11] bus/dpaa: " David Marchand
2022-11-18  8:53 ` [PATCH 04/11] net/atlantic: " David Marchand
2022-11-18  8:53 ` [PATCH 05/11] net/dpaa2: " David Marchand
2022-11-18  8:53 ` [PATCH 06/11] net/ice: " David Marchand
2022-11-18  8:53 ` [PATCH 07/11] app/testpmd: " David Marchand
2022-11-18  8:53 ` [PATCH 08/11] app/testpmd: fix build with clang 15 in flow code David Marchand
2022-11-18  8:53 ` David Marchand [this message]
2022-11-18  8:53 ` [PATCH 10/11] test/member: fix build with clang 15 David Marchand
2022-11-18  8:53 ` [PATCH 11/11] test/event: " David Marchand
2022-11-21  1:51   ` Gao, DaxueX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221118085313.2118977-10-david.marchand@redhat.com \
    --to=david.marchand@redhat.com \
    --cc=byron.marohn@intel.com \
    --cc=christian.maciocco@intel.com \
    --cc=dev@dpdk.org \
    --cc=karla.saur@intel.com \
    --cc=pablo.de.lara.guarch@intel.com \
    --cc=saikrishna.edupuganti@intel.com \
    --cc=stable@dpdk.org \
    --cc=yipeng1.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).