Skip to content

Commit dd7450c

Browse files
Kefeng Wangcminyard
authored andcommitted
ipmi_si: use bool type for initialized variable
Cover 'int' to 'bool' type for initialized variable. Signed-off-by: Kefeng Wang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent 2f66353 commit dd7450c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/ipmi/ipmi_si_intf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ enum si_intf_state {
7171

7272
static const char * const si_to_str[] = { "invalid", "kcs", "smic", "bt" };
7373

74-
static int initialized;
74+
static bool initialized;
7575

7676
/*
7777
* Indexes into stats[] in smi_info below.
@@ -2124,7 +2124,7 @@ static int __init init_ipmi_si(void)
21242124
}
21252125

21262126
skip_fallback_noirq:
2127-
initialized = 1;
2127+
initialized = true;
21282128
mutex_unlock(&smi_infos_lock);
21292129

21302130
if (type)

0 commit comments

Comments
 (0)