mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem
@ 2021-11-26 22:53 Colin Ian King
  2021-11-29 14:50 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2021-11-26 22:53 UTC (permalink / raw)
  To: Michal Simek, David Hildenbrand, Andrew Morton
  Cc: kernel-janitors, linux-kernel

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


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

* Re: [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem
  2021-11-26 22:53 [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem Colin Ian King
@ 2021-11-29 14:50 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2021-11-29 14:50 UTC (permalink / raw)
  To: Colin Ian King; +Cc: David Hildenbrand, Andrew Morton, kernel-janitors, LKML

Hi Colin,

pá 26. 11. 2021 v 23:53 odesílatel Colin Ian King
<colin.i.king@googlemail.com> napsal:
>
> 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
>

The patch is fine but From and SoB email are different. Please fix it.
./scripts/checkpatch.pl --codespell --strict
0001-microblaze-mm-highmem-Remove-redundant-initializatio.patch
WARNING: From:/Signed-off-by: email address mismatch: 'From: Colin Ian
King <colin.i.king@googlemail.com>' != 'Signed-off-by: Colin Ian King
<colin.i.king@gmail.com>'

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

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

end of thread, other threads:[~2021-11-29 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 22:53 [PATCH] microblaze/mm/highmem: Remove redundant initialization of variable maxmem Colin Ian King
2021-11-29 14:50 ` Michal Simek

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®