Skip to contentSkip to conversation

mtd:do not initialise statics to 0.

PATCH In review Xin Gao 2 participants 2 messages Jul 20, 2022 – Jul 21, 2022

Subsystems (2)
lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 mtd:do not initialise statics to 0.

do not initialise statics to 0.

---
 drivers/mtd/maps/scx200_docflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/maps/scx200_docflash.c +1 -1
index 8462662b7128..a565d69d28d6 100644
@@ -24,7 +24,7 @@ MODULE_AUTHOR("Christer Weinigel <[email protected]>");
 MODULE_DESCRIPTION("NatSemi SCx200 DOCCS Flash Driver");
 MODULE_LICENSE("GPL");
 
-static int probe = 0;		/* Don't autoprobe */
+static int probe;		/* Don't autoprobe */
 static unsigned size = 0x1000000; /* 16 MiB the whole ISA address space */
 static unsigned width = 8;	/* Default to 8 bits wide */
 static char *flashtype = "cfi_probe";
Signature · 1 line
2.30.2
#1 lore raw
Quoted 5 lines · Xin Gao

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

do not initialise statics to 0.

Please describe why. It may worth reading:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Quoted 26 lines
---
 drivers/mtd/maps/scx200_docflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/maps/scx200_docflash.c +1 -2
index 8462662b7128..a565d69d28d6 100644
@@ -24,7 +24,7 @@ MODULE_AUTHOR("Christer Weinigel <[email protected]>");
 MODULE_DESCRIPTION("NatSemi SCx200 DOCCS Flash Driver");
 MODULE_LICENSE("GPL");
 
-static int probe = 0;          /* Don't autoprobe */
+static int probe;              /* Don't autoprobe */
 static unsigned size = 0x1000000; /* 16 MiB the whole ISA address space */
 static unsigned width = 8;     /* Default to 8 bits wide */
 static char *flashtype = "cfi_probe";
--

2.30.2

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/