[PATCH 7/7] lib/power: fix unused but set variables
Conor Walsh
conor.walsh at intel.com
Fri Nov 12 15:01:11 CET 2021
This patch removes the tot_ppi variable from the update_stats function
within empty poll in the power library as it is an unused but set
variable.
Bugzilla ID: 881
Fixes: 450f0791312c ("power: add traffic pattern aware power control")
Signed-off-by: Conor Walsh <conor.walsh at intel.com>
Reported-by: Liang Longfeng <longfengx.liang at intel.com>
---
lib/power/rte_power_empty_poll.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c
index 975aa92997..8a2d60c576 100644
--- a/lib/power/rte_power_empty_poll.c
+++ b/lib/power/rte_power_empty_poll.c
@@ -207,7 +207,7 @@ update_training_stats(struct priority_worker *poll_stats,
static __rte_always_inline uint32_t
update_stats(struct priority_worker *poll_stats)
{
- uint64_t tot_edpi = 0, tot_ppi = 0;
+ uint64_t tot_edpi = 0;
uint32_t j, percent;
struct priority_worker *s = poll_stats;
@@ -237,7 +237,6 @@ update_stats(struct priority_worker *poll_stats)
for (j = 0; j < BINS_AV; j++) {
tot_edpi += s->edpi_av[j];
- tot_ppi += s->ppi_av[j];
}
tot_edpi = tot_edpi / BINS_AV;
--
2.25.1
More information about the dev
mailing list