patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v3] power: fix to remove unused variable
@ 2019-02-15 10:28 Pallantla Poornima
  2019-02-15 11:41 ` Hunt, David
  2019-02-15 14:14 ` Aaron Conole
  0 siblings, 2 replies; 4+ messages in thread
From: Pallantla Poornima @ 2019-02-15 10:28 UTC (permalink / raw)
  To: dev
  Cc: reshma.pattan, david.hunt, aconole, ramirose, Pallantla Poornima, stable

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>
---
v3: Updated fixes line.
v2: Removed unused variable as suggested.
---
 lib/librte_power/rte_power_empty_poll.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c
index e6145462f..15d4f0509 100644
--- a/lib/librte_power/rte_power_empty_poll.c
+++ b/lib/librte_power/rte_power_empty_poll.c
@@ -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) {
-- 
2.17.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-stable] [PATCH v3] power: fix to remove unused variable
  2019-02-15 10:28 [dpdk-stable] [PATCH v3] power: fix to remove unused variable Pallantla Poornima
@ 2019-02-15 11:41 ` Hunt, David
  2019-04-04 23:30   ` Thomas Monjalon
  2019-02-15 14:14 ` Aaron Conole
  1 sibling, 1 reply; 4+ messages in thread
From: Hunt, David @ 2019-02-15 11:41 UTC (permalink / raw)
  To: Pallantla Poornima, dev; +Cc: reshma.pattan, aconole, ramirose, stable


On 15/2/2019 10:28 AM, Pallantla Poornima wrote:
> 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>
> ---
> v3: Updated fixes line.
> v2: Removed unused variable as suggested.
> ---
>   lib/librte_power/rte_power_empty_poll.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/lib/librte_power/rte_power_empty_poll.c b/lib/librte_power/rte_power_empty_poll.c
> index e6145462f..15d4f0509 100644
> --- a/lib/librte_power/rte_power_empty_poll.c
> +++ b/lib/librte_power/rte_power_empty_poll.c
> @@ -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) {


Acked-by: David Hunt <david.hunt@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-stable] [PATCH v3] power: fix to remove unused variable
  2019-02-15 10:28 [dpdk-stable] [PATCH v3] power: fix to remove unused variable Pallantla Poornima
  2019-02-15 11:41 ` Hunt, David
@ 2019-02-15 14:14 ` Aaron Conole
  1 sibling, 0 replies; 4+ messages in thread
From: Aaron Conole @ 2019-02-15 14:14 UTC (permalink / raw)
  To: Pallantla Poornima; +Cc: dev, reshma.pattan, david.hunt, ramirose, stable

Pallantla Poornima <pallantlax.poornima@intel.com> writes:

> 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>
> ---

Whoops, missed the v3

Acked-by: Aaron Conole <aconole@redhat.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-stable] [PATCH v3] power: fix to remove unused variable
  2019-02-15 11:41 ` Hunt, David
@ 2019-04-04 23:30   ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2019-04-04 23:30 UTC (permalink / raw)
  To: Pallantla Poornima
  Cc: stable, Hunt, David, dev, reshma.pattan, aconole, ramirose

15/02/2019 12:41, Hunt, David:
> 
> On 15/2/2019 10:28 AM, Pallantla Poornima wrote:
> > 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: David Hunt <david.hunt@intel.com>

Applied, thanks



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-04 23:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 10:28 [dpdk-stable] [PATCH v3] power: fix to remove unused variable Pallantla Poornima
2019-02-15 11:41 ` Hunt, David
2019-04-04 23:30   ` Thomas Monjalon
2019-02-15 14:14 ` Aaron Conole

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).