All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] page_alloc: remove inactive initialization
@ 2022-08-03  6:41 Li kunyu
  2022-08-12  2:07 ` Li kunyu
  0 siblings, 1 reply; 2+ messages in thread
From: Li kunyu @ 2022-08-03  6:41 UTC (permalink / raw)
  To: akpm, linux-mm; +Cc: linux-kernel, Li kunyu

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@nfschina.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] page_alloc: remove inactive initialization
  2022-08-03  6:41 [PATCH] page_alloc: remove inactive initialization Li kunyu
@ 2022-08-12  2:07 ` Li kunyu
  0 siblings, 0 replies; 2+ messages in thread
From: Li kunyu @ 2022-08-12  2:07 UTC (permalink / raw)
  To: kunyu; +Cc: akpm, linux-kernel, linux-mm


Many thanks to Mr. Andrew Morton, this patch is entered in the mm-unstable module.

Patch address: 
  https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/page_alloc-remove-inactive-initialization.patch

Module address:
  git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-12  2:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03  6:41 [PATCH] page_alloc: remove inactive initialization Li kunyu
2022-08-12  2:07 ` Li kunyu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.