summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2022-08-03 14:41:18 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-09-11 20:25:50 -0700
commit97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce (patch)
tree52f73e92cb85a57fd4e18259648ff361473731b2 /mm/page_alloc.c
parentd2226ebd5484afcf9f9b71b394ec1567a7730eb1 (diff)
downloadlwn-97bab178e8e4035e0f3a8b1362eec3e86fdcb9ce.tar.gz
lwn-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.c2
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;