From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 09923A0543; Mon, 13 Jun 2022 17:58:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A578940222; Mon, 13 Jun 2022 17:58:01 +0200 (CEST) Received: from out203-205-221-231.mail.qq.com (out203-205-221-231.mail.qq.com [203.205.221.231]) by mails.dpdk.org (Postfix) with ESMTP id 7597640150 for ; Mon, 13 Jun 2022 17:57:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1655135875; bh=8cNHPlM1tep0lA9A6v6COmYM5zHvh3+Ll1nmHIfoULc=; h=From:To:Cc:Subject:Date; b=bz3quW3tdnUNMNDey9TfU4EOTzblaFBnL7Hgf2fQteXzbuswok6rWSoSaHVbJuNYp vcCxvY1W5RTSl8YxIxhcbNUeVceQ9vVNHWup9B56BYQ31s83N0QBDu5LqXEUINfi5V VAiPGMNIWyhxTvpeFAoSA0OB3S96iJcCiSTZOrKk= Received: from localhost.localdomain ([202.192.80.113]) by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP id E72138D5; Mon, 13 Jun 2022 23:57:50 +0800 X-QQ-mid: xmsmtpt1655135870tdphenscd Message-ID: X-QQ-XMAILINFO: MBjwNRQMz5zUWKJv+UFhg6ZhmGuDtbIEz5sxB5NfSpuUtLgB6v2yIRuqcBb0sA JsEyt7w6dFRguqa+5lr8uOlX8J85tznp27AnnqkLbPfo3h11IYT4gMVwcrkmurLPPetcSI89TMbY XJO5xtx7CQI4xdS61pB7N+YM26wDROo3gQBqxVXguyucsX+10HzKLABdWtO9uxSQeFnkQKchWITK aHyCrLHRF+MflHgyrUmmCy5pOlCN4FIBb6lE8K4hcEuVYbs8EeVlFP805ssEeSCx80atcjusu/iO Mt4Y6USYVT2xS8T30DAAt4G5hlGmMUDxGC0AvHK+b2EEaKWKp4mbbecx0Hoyjln+Bfw0t+RuY+3K Oj1P2Tb8dBA2AebAbIyVrcppwI42EAxgZOguymSMUOSFy8yW6neRAxyqemZLpXNln9bLoqUESrcu 33HgYHrCtsyNs5ECucUD1KNIEHZ9dbT3dNj408IV0VCjGXMV0cZeiJyZv/dzXncFUx6wI2HYknLb hU87RhEqei5imga746U9KtPxHQg7gwVIhAChtrQLrmsjeG+enKcLwLVuuI1aCN6or+QOtNDoQ5Kl oVtjyTJbYmZgHLHx6Wko17aKZ/aqT7N3vq3s0hcMf7n+PJ4x/xNtWzUwKybe8fws8hcmcqCKbbcg S77CMUpPgu9GxBNWrgKLAuQqcsghFpf5HQL8BC0bgWrA4fXaE2uMuHNz0vWn0xteBk3WaOm3ldTW d5N0p8jcOlnXZ48nzw7YlNaCeBJdXPZcDsvdA01eFs5UL54T87GqJfxyBlUzMriU4MaCZ+52RwXE /deHbA8gm/n2GdtQLPqYOwe19mEoCYBEYlQfwIlQ3ssjcjJVUWFUTj5/B2sTttmZ5GCcOXohjVbd 2FFg9h7xN9ckE+pLNJQ+NcA2sex7FOMt6GzNqjcT/PkaQNlxzhTbw= From: 835703180@qq.com To: david.hunt@intel.com Cc: dev@dpdk.org, newsky647 <835703180@qq.com> Subject: [PATCH 2/2] lib/power:fix comparision to bool warning Date: Mon, 13 Jun 2022 23:56:43 +0800 X-OQ-MSGID: <20220613155643.558-1-835703180@qq.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: newsky647 <835703180@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 <835703180@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