[PATCH] uml: Remove the initialization of statics to 0
Shaomin Deng
dengshaomin at cdjrlc.com
Sat Aug 27 09:26:31 PDT 2022
It is always unnecessary to initialise statics to 0.
Signed-off-by: Shaomin Deng <dengshaomin at cdjrlc.com>
---
arch/um/kernel/umid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/um/kernel/umid.c b/arch/um/kernel/umid.c
index 8031a038eb58..72bc60ade347 100644
--- a/arch/um/kernel/umid.c
+++ b/arch/um/kernel/umid.c
@@ -9,7 +9,7 @@
#include <os.h>
/* Changed by set_umid_arg */
-static int umid_inited = 0;
+static int umid_inited;
static int __init set_umid_arg(char *name, int *add)
{
--
2.35.1
More information about the linux-um
mailing list