page_alloc: remove inactive initialization
authorLi kunyu <kunyu@nfschina.com>
Wed, 3 Aug 2022 06:41:18 +0000 (14:41 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:25:50 +0000 (20:25 -0700)
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>
mm/page_alloc.c

index e5486d4..f66a4a4 100644 (file)
@@ -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;