From: Wen Yang <wen.yang99@zte.com.cn>
To: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@kernel.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Josh Poimboeuf <jpoimboe@redhat.com>
Cc: linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn,
Wen Yang <wen.yang99@zte.com.cn>,
"Peter Zijlstra (Intel)" <peterz@infraded.org>,
Peter Zijlstra <peterz@infradead.org>,
Mukesh Ojha <mojha@codeaurora.org>
Subject: [PATCH] cpu: Bool tests don't need comparisons
Date: Sat, 1 Dec 2018 16:04:44 +0800 [thread overview]
Message-ID: <20181201080444.9305-1-wen.yang99@zte.com.cn> (raw)
This is the patch to the file cpu.c
which fixes the following coccinelle warning:
WARNING: Comparison to bool
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ingo Molnar <mingo@kernel.org>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Josh Poimboeuf <jpoimboe@redhat.com>
CC: "Peter Zijlstra (Intel)" <peterz@infraded.org>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Mukesh Ojha <mojha@codeaurora.org>
CC: linux-kernel@vger.kernel.org
---
kernel/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 91d5c38eb7e5..5bdd7e150a11 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1650,7 +1650,7 @@ int __cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state,
lockdep_assert_cpus_held();
sp = cpuhp_get_step(state);
- if (sp->multi_instance == false)
+ if (!sp->multi_instance)
return -EINVAL;
mutex_lock(&cpuhp_state_mutex);
--
2.19.1
next reply other threads:[~2018-12-01 8:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-01 8:04 Wen Yang [this message]
2018-12-03 9:15 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181201080444.9305-1-wen.yang99@zte.com.cn \
--to=wen.yang99@zte.com.cn \
--cc=jpoimboe@redhat.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mojha@codeaurora.org \
--cc=peterz@infradead.org \
--cc=peterz@infraded.org \
--cc=tglx@linutronix.de \
--cc=zhong.weidong@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®