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 <kunyu@nfschina.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Li kunyu
2022-08-03 14:41:18 +08:00
committed by Andrew Morton
parent d2226ebd54
commit 97bab178e8

View File

@ -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;