lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231101081940.6147-1-kunyu@nfschina.com>
Date:   Wed,  1 Nov 2023 16:19:40 +0800
From:   Li kunyu <kunyu@...china.com>
To:     akpm@...ux-foundation.org, michael.christie@...cle.com,
        brauner@...nel.org, mst@...hat.com, npiggin@...il.com,
        qiang1.zhang@...el.com, arve@...roid.com,
        gregkh@...uxfoundation.org, quic_pbaronia@...cinc.com
Cc:     linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] kthread: Modify the ret variable type to bool

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@...china.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ