power: remove unused variable
authorPallantla Poornima <pallantlax.poornima@intel.com>
Fri, 15 Feb 2019 10:28:44 +0000 (10:28 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Apr 2019 08:40:56 +0000 (10:40 +0200)
Variable pfi_str is removed since it is unused.

Fixes: 450f0791312c ("power: add traffic pattern aware power control")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: David Hunt <david.hunt@intel.com>
lib/librte_power/rte_power_empty_poll.c

index e614546..15d4f05 100644 (file)
@@ -156,11 +156,8 @@ update_training_stats(struct priority_worker *poll_stats,
 {
        RTE_SET_USED(specific_freq);
 
-       char pfi_str[32];
        uint64_t p0_empty_deq;
 
-       sprintf(pfi_str, "%02d", freq);
-
        if (poll_stats->cur_freq == freq &&
                        poll_stats->thresh[freq].trained == false) {
                if (poll_stats->thresh[freq].cur_train_iter == 0) {