mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kthread: Modify the ret variable type to bool
@ 2023-11-01  8:19 Li kunyu
  0 siblings, 0 replies; only message in thread
From: Li kunyu @ 2023-11-01  8:19 UTC (permalink / raw)
  To: akpm, michael.christie, brauner, mst, npiggin, qiang1.zhang,
	arve, gregkh, quic_pbaronia
  Cc: linux-kernel, Li kunyu

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-01  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01  8:19 [PATCH] kthread: Modify the ret variable type to bool Li kunyu

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®