From nobody Wed Dec 17 09:46:08 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F2D4C4167B for ; Wed, 1 Nov 2023 08:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231889AbjKAIUS (ORCPT ); Wed, 1 Nov 2023 04:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjKAIUQ (ORCPT ); Wed, 1 Nov 2023 04:20:16 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 03904B4 for ; Wed, 1 Nov 2023 01:20:12 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 433AC6059605E; Wed, 1 Nov 2023 16:19:47 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu 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 Subject: [PATCH] kthread: Modify the ret variable type to bool Date: Wed, 1 Nov 2023 16:19:40 +0800 Message-Id: <20231101081940.6147-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 --- 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 =3D &dwork->work; unsigned long flags; - int ret; + bool ret; =20 raw_spin_lock_irqsave(&worker->lock, flags); =20 @@ -1286,7 +1286,7 @@ static bool __kthread_cancel_work_sync(struct kthread= _work *work, bool is_dwork) { struct kthread_worker *worker =3D work->worker; unsigned long flags; - int ret =3D false; + bool ret =3D false; =20 if (!worker) goto out; --=20 2.18.2