diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-08-03 08:41:18 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-12 05:25:50 +0200 |
commit | 97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce (patch) | |
tree | 52f73e92cb85a57fd4e18259648ff361473731b2 /mm/page_alloc.c | |
parent | mm/hugetlb: add dedicated func to get 'allowed' nodemask for current process (diff) | |
download | linux-97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce.tar.xz linux-97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce.zip |
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/page_alloc.c')
-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; |