The qconf parameter can reused, fixing a shadow warning.

Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
---
 examples/l2fwd-keepalive/main.c      | 2 +-
 examples/l2fwd-keepalive/meson.build | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c
index 993e0bf9da..12ca60c3e4 100644
--- a/examples/l2fwd-keepalive/main.c
+++ b/examples/l2fwd-keepalive/main.c
@@ -780,7 +780,7 @@ main(int argc, char **argv)
        }
        /* launch per-lcore init on every worker lcore */
        RTE_LCORE_FOREACH_WORKER(lcore_id) {
-               struct lcore_queue_conf *qconf = &lcore_queue_conf[lcore_id];
+               qconf = &lcore_queue_conf[lcore_id];
 
                if (qconf->n_rx_port == 0)
                        RTE_LOG(INFO, L2FWD,
diff --git a/examples/l2fwd-keepalive/meson.build 
b/examples/l2fwd-keepalive/meson.build
index 258f3baf08..e3f72aedb8 100644
--- a/examples/l2fwd-keepalive/meson.build
+++ b/examples/l2fwd-keepalive/meson.build
@@ -19,4 +19,3 @@ sources = files(
         'main.c',
         'shm.c',
 )
-cflags += no_shadow_cflag
-- 
2.53.0

Reply via email to