From: Corey Minyard <minyard@acm.org>
To: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
openipmi-developer@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ipmi_si: use bool type for initialized variable
Date: Fri, 17 May 2019 11:18:55 -0500 [thread overview]
Message-ID: <20190517161855.GC11017@minyard.net> (raw)
In-Reply-To: <20190517101245.4341-2-wangkefeng.wang@huawei.com>
On Fri, May 17, 2019 at 06:12:45PM +0800, Kefeng Wang wrote:
> Cover 'int' to 'bool' type for initialized variable.
A reasonable cleanup, queued for 5.3.
-corey
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
> drivers/char/ipmi/ipmi_si_intf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
> index f124a2d2bb9f..da5b6723329a 100644
> --- a/drivers/char/ipmi/ipmi_si_intf.c
> +++ b/drivers/char/ipmi/ipmi_si_intf.c
> @@ -71,7 +71,7 @@ enum si_intf_state {
>
> static const char * const si_to_str[] = { "invalid", "kcs", "smic", "bt" };
>
> -static int initialized;
> +static bool initialized;
>
> /*
> * Indexes into stats[] in smi_info below.
> @@ -2124,7 +2124,7 @@ static int __init init_ipmi_si(void)
> }
>
> skip_fallback_noirq:
> - initialized = 1;
> + initialized = true;
> mutex_unlock(&smi_infos_lock);
>
> if (type)
> --
> 2.20.1
>
next prev parent reply other threads:[~2019-05-17 16:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-17 10:12 [PATCH] ipmi_si: fix unexpected driver unregister warning Kefeng Wang
2019-05-17 10:12 ` [PATCH] ipmi_si: use bool type for initialized variable Kefeng Wang
2019-05-17 16:18 ` Corey Minyard [this message]
2019-05-17 16:18 ` [PATCH] ipmi_si: fix unexpected driver unregister warning Corey Minyard
2019-05-18 7:40 ` Kefeng Wang
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=20190517161855.GC11017@minyard.net \
--to=minyard@acm.org \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=openipmi-developer@lists.sourceforge.net \
--cc=wangkefeng.wang@huawei.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
Powered by JetHome