From: newsky647 <835703...@qq.com>

expr "if ([expr] == true)" can be simplified to "if ([expr])".
Therefore, simplify it, no functional change.

Fixes: 450f0791312 ("lib/power:  power: add traffic pattern aware power control"
Signed-off-by: newsky647 <835703...@qq.com>
---
 lib/power/rte_power_empty_poll.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c
index 4a4db51247..c58f4155d9 100644
--- a/lib/power/rte_power_empty_poll.c
+++ b/lib/power/rte_power_empty_poll.c
@@ -326,9 +326,9 @@ empty_poll_training(struct priority_worker *poll_stats,
                        max_train_iter);
 
 
-       if (poll_stats->thresh[LOW].trained == true
-                       && poll_stats->thresh[MED].trained == true
-                       && poll_stats->thresh[HGH].trained == true) {
+       if (poll_stats->thresh[LOW].trained
+                       && poll_stats->thresh[MED].trained
+                       && poll_stats->thresh[HGH].trained ) {
 
                set_state(poll_stats, MED_NORMAL);
 
-- 
2.35.1.windows.2

Reply via email to