Skip to contentSkip to conversation

kernel:do not initialise statics to 0.

PATCH New Xin Gao 1 participant 1 message Jul 20, 2022 User-mode Linux (UML)

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

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

do not initialise statics to 0.

---
 arch/um/drivers/mconsole_kern.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/mconsole_kern.c +1 -1
index 8ca67a692683..de40e7822fa6 100644
@@ -283,7 +283,7 @@ struct unplugged_pages {
 };
 
 static DEFINE_MUTEX(plug_mem_mutex);
-static unsigned long long unplugged_pages_count = 0;
+static unsigned long long unplugged_pages_count;
 static LIST_HEAD(unplugged_pages);
 static int unplug_index = UNPLUGGED_PER_PAGE;
 
Signature · 1 line
2.30.2