[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220803064118.3664-1-kunyu@nfschina.com>
Date: Wed, 3 Aug 2022 14:41:18 +0800
From: Li kunyu <kunyu@...china.com>
To: akpm@...ux-foundation.org, linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] 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.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b0bcab50f0a3..38d559e8aee6 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -8885,7 +8885,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;
--
2.18.2
Powered by blists - more mailing lists