Skip to contentSkip to conversation

page_alloc: remove inactive initialization

PATCH Applied Li kunyu 1 participant 2 messages Aug 3, 2022 – Aug 12, 2022

Subsystems (2)
lore
Share & tools
lore

Li kunyu

author
#0 lore raw

PATCH 1/1 page_alloc: remove inactive initialization

The allocation address of the table pointer variable is first performed in the function, no initialization assignment is required, and no invalid pointer will appear.

---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
index b0bcab50f0a3..38d559e8aee6 100644
@@ -8885,7 +8885,7 @@ void *__init alloc_large_system_hash(const char *tablename,
 {
 	unsigned long long max = high_limit;
 	unsigned long log2qty, size;
-	void *table = NULL;
+	void *table;
 	gfp_t gfp_flags;
 	bool virt;
 	bool huge;
Signature · 1 line
2.18.2