提交 dd7450ca 编写于 作者: K Kefeng Wang 提交者: Corey Minyard

ipmi_si: use bool type for initialized variable

Cover 'int' to 'bool' type for initialized variable.
Signed-off-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Message-Id: <20190517101245.4341-2-wangkefeng.wang@huawei.com>
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
上级 2f663539
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册