From: Li kunyu <kunyu@nfschina.com>
To: akpm@linux-foundation.org, michael.christie@oracle.com,
brauner@kernel.org, mst@redhat.com, npiggin@gmail.com,
qiang1.zhang@intel.com, arve@android.com,
gregkh@linuxfoundation.org, quic_pbaronia@quicinc.com
Cc: linux-kernel@vger.kernel.org, Li kunyu <kunyu@nfschina.com>
Subject: [PATCH] kthread: Modify the ret variable type to bool
Date: Wed, 1 Nov 2023 16:19:40 +0800 [thread overview]
Message-ID: <20231101081940.6147-1-kunyu@nfschina.com> (raw)
The value of ret assigned as bool type, and when combined with the
function return type ret, it should be defined as bool.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
kernel/kthread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/kthread.c b/kernel/kthread.c
index 1eea53050babc..9204693e07c68 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -1241,7 +1241,7 @@ bool kthread_mod_delayed_work(struct kthread_worker *worker,
{
struct kthread_work *work = &dwork->work;
unsigned long flags;
- int ret;
+ bool ret;
raw_spin_lock_irqsave(&worker->lock, flags);
@@ -1286,7 +1286,7 @@ static bool __kthread_cancel_work_sync(struct kthread_work *work, bool is_dwork)
{
struct kthread_worker *worker = work->worker;
unsigned long flags;
- int ret = false;
+ bool ret = false;
if (!worker)
goto out;
--
2.18.2
reply other threads:[~2023-11-01 8:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20231101081940.6147-1-kunyu@nfschina.com \
--to=kunyu@nfschina.com \
--cc=akpm@linux-foundation.org \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.christie@oracle.com \
--cc=mst@redhat.com \
--cc=npiggin@gmail.com \
--cc=qiang1.zhang@intel.com \
--cc=quic_pbaronia@quicinc.com \
/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®