Re: [dpdk-dev] [PATCH] power: fix unused-but-set variable error

2021-11-04 Thread Thomas Monjalon
29/10/2021 20:53, David Marchand: > On Fri, Oct 29, 2021 at 7:17 PM Jim Harris wrote: > > > > clang-13 rightfully complains that the tot_ppi > > variable in update_stats is set but not used, since > > the final accumulated tot_ppi results isn't used > > anywhere. So just remove the tot_ppi variabl

Re: [dpdk-dev] [PATCH] power: fix unused-but-set variable error

2021-10-29 Thread David Marchand
On Fri, Oct 29, 2021 at 7:17 PM Jim Harris wrote: > > clang-13 rightfully complains that the tot_ppi > variable in update_stats is set but not used, since > the final accumulated tot_ppi results isn't used > anywhere. So just remove the tot_ppi variable. Dead code, from the start... Fixes: 450f07

[dpdk-dev] [PATCH] power: fix unused-but-set variable error

2021-10-29 Thread Jim Harris
clang-13 rightfully complains that the tot_ppi variable in update_stats is set but not used, since the final accumulated tot_ppi results isn't used anywhere. So just remove the tot_ppi variable. Signed-off-by: Jim Harris --- lib/power/rte_power_empty_poll.c | 3 +-- 1 file changed, 1 insertion(+