Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Corey Minyard
dd7450ca 2f663539

+2 -2
+2 -2
drivers/char/ipmi/ipmi_si_intf.c
··· 71 71 72 72 static const char * const si_to_str[] = { "invalid", "kcs", "smic", "bt" }; 73 73 74 - static int initialized; 74 + static bool initialized; 75 75 76 76 /* 77 77 * Indexes into stats[] in smi_info below. ··· 2124 2124 } 2125 2125 2126 2126 skip_fallback_noirq: 2127 - initialized = 1; 2127 + initialized = true; 2128 2128 mutex_unlock(&smi_infos_lock); 2129 2129 2130 2130 if (type)