Commit 97bab178 authored by Li kunyu's avatar Li kunyu Committed by Andrew Morton

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.comSigned-off-by: default avatarLi kunyu <kunyu@nfschina.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent d2226ebd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment