From: Colin Ian King <colin.i.king@googlemail.com>
To: Michal Simek <monstr@monstr.eu>,
David Hildenbrand <david@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem
Date: Fri, 26 Nov 2021 22:53:29 +0000 [thread overview]
Message-ID: <20211126225329.1150651-1-colin.i.king@gmail.com> (raw)
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@gmail.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
next reply other threads:[~2021-11-26 22:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-26 22:53 Colin Ian King [this message]
2021-11-29 14:50 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211126225329.1150651-1-colin.i.king@gmail.com \
--to=colin.i.king@googlemail.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monstr@monstr.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®