diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-05-17 12:12:45 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-05-20 13:51:10 +0200 |
commit | dd7450cab71174637329e5ef57d8474fc7ff2ea0 (patch) | |
tree | b73241c922d06cb9f88859ca19dde14dd228d26d /drivers/char | |
parent | ipmi_si: fix unexpected driver unregister warning (diff) | |
download | linux-dd7450cab71174637329e5ef57d8474fc7ff2ea0.tar.xz linux-dd7450cab71174637329e5ef57d8474fc7ff2ea0.zip |
ipmi_si: use bool type for initialized variable
Cover 'int' to 'bool' type for initialized variable.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Message-Id: <20190517101245.4341-2-wangkefeng.wang@huawei.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 4 |
1 files 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) |