diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-08-03 09:41:18 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-12 06:25:50 +0300 |
commit | 97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce (patch) | |
tree | 52f73e92cb85a57fd4e18259648ff361473731b2 /mm | |
parent | d2226ebd5484afcf9f9b71b394ec1567a7730eb1 (diff) | |
download | linux-97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce.tar.xz |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e5486d47406e..f66a4a49ee0b 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; |