[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211126225329.1150651-1-colin.i.king@gmail.com>
Date: Fri, 26 Nov 2021 22:53:29 +0000
From: Colin Ian King <colin.i.king@...glemail.com>
To: Michal Simek <monstr@...str.eu>,
David Hildenbrand <david@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem
The variable maxmem is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.
Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
arch/microblaze/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c
index 952f35b335b2..f328d4549fad 100644
--- a/arch/microblaze/mm/init.c
+++ b/arch/microblaze/mm/init.c
@@ -144,7 +144,7 @@ int page_is_ram(unsigned long pfn)
*/
static void mm_cmdline_setup(void)
{
- unsigned long maxmem = 0;
+ unsigned long maxmem;
char *p = cmd_line;
/* Look for mem= option on command line */
--
2.33.1
Powered by blists - more mailing lists