Skip to content

Commit

Permalink
page_alloc: remove inactive initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li kunyu authored and Andrew Morton committed Sep 12, 2022
1 parent d2226eb commit 97bab17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97bab17

Please sign in to comment.