Compiler will initialise statics to 0, so there is no need to do that. Signed-off-by: Shaomin Deng <dengshaomin@xxxxxxxxxx> --- arch/alpha/kernel/srmcons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c index 6dc952b0df4a..5024318b14a8 100644 --- a/arch/alpha/kernel/srmcons.c +++ b/arch/alpha/kernel/srmcons.c @@ -23,7 +23,7 @@ static DEFINE_SPINLOCK(srmcons_callback_lock); -static int srm_is_registered_console = 0; +static int srm_is_registered_console; /* * The TTY driver -- 2.35.1