From: Li kunyu Date: Wed, 3 Aug 2022 06:41:18 +0000 (+0800) Subject: page_alloc: remove inactive initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce;p=linux.git 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. Link: https://lkml.kernel.org/r/20220803064118.3664-1-kunyu@nfschina.com Signed-off-by: Li kunyu Signed-off-by: Andrew Morton --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e5486d47406e8..f66a4a49ee0bc 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -8974,7 +8974,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;