Skip to contentSkip to conversation

Date:do not initialise statics to 0

PATCH In review Xin Gao 2 participants 2 messages Jul 19, 2022 libata

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 Date:do not initialise statics to 0

do not initialise statics to 0

---
 drivers/ata/pata_artop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_artop.c +1 -1
index 20a8f31a3f57..1aad8df2ea87 100644
@@ -37,7 +37,7 @@
  *	test stuff.
  */
 
-static int clock = 0;
+static int clock;
 
 /**
  *	artop62x0_pre_reset	-	probe begin
Signature · 1 line
2.30.2
#1 lore raw
Quoted 12 lines · Xin Gao

do not initialise statics to 0

---
 drivers/ata/pata_artop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_artop.c +0 -0
index 20a8f31a3f57..1aad8df2ea87 100644

drivers/ata/pata_artop.c line 43

Quoted 8 lines
drivers/ata/pata_artop.c +1 -1
@@ -37,7 +37,7 @@
  *	test stuff.
  */
 
-static int clock = 0;
+static int clock;
 
 /**
  *	artop62x0_pre_reset	-	probe begin

Very weird patch title.

Is this solving any static analyzer or compiler warning ? If not, this is not a very useful change.

Signature · 2 lines
Damien Le Moal
Western Digital Research