lkml.org 
[lkml]   [2022]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tty: Do not initialise statics to 0
Date
Compiler will initialise statics to 0, so there is no need to do that.

Signed-off-by: Shaomin Deng <dengshaomin@cdjrlc.com>
---
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
\
 
 \ /
  Last update: 2022-08-27 18:31    [W:0.037 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site