From: Jim Harris <james.r.harris@intel.com>
To: dev@dpdk.org
Cc: Jim Harris <james.r.harris@intel.com>
Subject: [dpdk-dev] [PATCH] test-compress-perf: fix unused-but-set-variable error
Date: Fri, 29 Oct 2021 17:16:22 +0000 [thread overview]
Message-ID: <20211029171622.330330-1-james.r.harris@intel.com> (raw)
clang-13 rightfully complains that the total_deq_ops
variable in cperf_cyclecount_op_setup is set but not
used, since the final accumulated total_deq_ops
results isn't used anywhere. So just remove the
total_deq_ops variable.
Signed-off-by: Jim Harris <james.r.harris@intel.com>
---
app/test-compress-perf/comp_perf_test_cyclecount.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/app/test-compress-perf/comp_perf_test_cyclecount.c b/app/test-compress-perf/comp_perf_test_cyclecount.c
index 55559a7d5a..c875ddbdac 100644
--- a/app/test-compress-perf/comp_perf_test_cyclecount.c
+++ b/app/test-compress-perf/comp_perf_test_cyclecount.c
@@ -76,7 +76,6 @@ cperf_cyclecount_op_setup(struct rte_comp_op **ops,
for (iter = 0; iter < num_iter; iter++) {
uint32_t remaining_ops = mem->total_bufs;
- uint32_t total_deq_ops = 0;
uint32_t total_enq_ops = 0;
uint16_t num_enq = 0;
uint16_t num_deq = 0;
@@ -136,7 +135,6 @@ cperf_cyclecount_op_setup(struct rte_comp_op **ops,
/* instead of the real dequeue operation */
num_deq = num_ops;
- total_deq_ops += num_deq;
rte_mempool_put_bulk(mem->op_pool,
(void **)ops, num_deq);
}
--
2.32.0
next reply other threads:[~2021-10-29 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 17:16 Jim Harris [this message]
2021-10-29 18:57 ` David Marchand
2021-10-31 21:34 ` [dpdk-dev] [EXT] " Akhil Goyal
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=20211029171622.330330-1-james.r.harris@intel.com \
--to=james.r.harris@intel.com \
--cc=dev@dpdk.org \
/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).