Skip to contentSkip to conversation

parisc/mm: Remove the static variable initialisations to 0

PATCH Applied Jason Wang 2 participants 2 messages Jul 23, 2022 – Jul 26, 2022 PA-RISC architecture

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 parisc/mm: Remove the static variable initialisations to 0

Initialise global and static variable to 0 is always unnecessary. Remove the unnecessary initialisations.

---
 arch/parisc/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/parisc/mm/init.c +1 -1
index f03e0961fa25..b0c43f3b0a5f 100644
@@ -722,7 +722,7 @@ static unsigned long space_id[SID_ARRAY_SIZE] = { 1 }; /* disallow space 0 */
 static unsigned long dirty_space_id[SID_ARRAY_SIZE];
 static unsigned long space_id_index;
 static unsigned long free_space_ids = NR_SPACE_IDS - 1;
-static unsigned long dirty_space_ids = 0;
+static unsigned long dirty_space_ids;
 
 static DEFINE_SPINLOCK(sid_lock);
 
Signature · 1 line
2.35.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Jason Wang

Initialise global and static variable to 0 is always unnecessary. Remove the unnecessary initialisations.

applied.
Thanks!
Helge

Quoted 17 lines
---
 arch/parisc/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/parisc/mm/init.c +1 -1
index f03e0961fa25..b0c43f3b0a5f 100644
@@ -722,7 +722,7 @@ static unsigned long space_id[SID_ARRAY_SIZE] = { 1 }; /* disallow space 0 */
 static unsigned long dirty_space_id[SID_ARRAY_SIZE];
 static unsigned long space_id_index;
 static unsigned long free_space_ids = NR_SPACE_IDS - 1;
-static unsigned long dirty_space_ids = 0;
+static unsigned long dirty_space_ids;
 
 static DEFINE_SPINLOCK(sid_lock);