* [PATCH 2/2] lib/power:fix comparision to bool warning
@ 2022-06-13 15:56 835703180
2023-09-12 11:08 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: 835703180 @ 2022-06-13 15:56 UTC (permalink / raw)
To: david.hunt; +Cc: dev, newsky647
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] lib/power:fix comparision to bool warning
2022-06-13 15:56 [PATCH 2/2] lib/power:fix comparision to bool warning 835703180
@ 2023-09-12 11:08 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-09-12 11:08 UTC (permalink / raw)
To: 835703180; +Cc: david.hunt, dev
On Mon, 13 Jun 2022 23:56:43 +0800
835703180@qq.com wrote:
> 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>
This patch does not meet Developer Certificate of Origin legal
requirements. You need to use your legal name because Signed Off by
has legal meaning.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
The contribution was created in whole or in part by me and I have the
right to submit it under the open source license indicated in the file;
or
The contribution is based upon previous work that, to the best of my
knowledge, is covered under an appropriate open source license and I
have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the
same open source license (unless I am permitted to submit under a
different license), as indicated in the file; or
The contribution was provided directly to me by some other person who
certified (a), (b) or (c) and I have not modified it.
I understand and agree that this project and the contribution are
public and that a record of the contribution (including all personal
information I submit with it, including my sign-off) is maintained
indefinitely and may be redistributed consistent with this project or
the open source license(s) involved.
then you just add a line saying:
Signed-off-by: Random J Developer <random@developer.example.org>
using a known identity (sorry, no anonymous contributions.) This will
be done for you automatically if you use git commit -s. Reverts should
also include "Signed-off-by". git revert -s does that for you.
Some people also put extra tags at the end. They'll just be ignored for
now, but you can do this to mark internal company procedures or just
point out some special detail about the sign-off.
Any further SoBs (Signed-off-by:'s) following the author's SoB are from
people handling and transporting the patch, but were not involved in
its development. SoB chains should reflect the real route a patch took
as it was propagated to the maintainers and ultimately to Linus, with
the first SoB entry signalling primary authorship of a single author.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-12 11:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 15:56 [PATCH 2/2] lib/power:fix comparision to bool warning 835703180
2023-09-12 11:08 ` Stephen Hemminger
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).