linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] MIPS: Remove useless parameter of bootcmdline_init()
@ 2020-05-18  7:08 Zhi Li
  2020-05-19 16:04 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Zhi Li @ 2020-05-18  7:08 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: Tiezhu Yang, Xuefeng Li, linux-mips, linux-kernel

The parameter "cmdline_p" is useless in bootcmdline_init(),remove it.

Signed-off-by: Zhi Li <lizhi01@loongson.cn>
---

v2:
   - Remove "the" before "bootcmdline_init()" in the patch subject.

 arch/mips/kernel/setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 8db533c..7b537fa 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -575,7 +575,7 @@ static int __init bootcmdline_scan_chosen(unsigned long node, const char *uname,
 
 #endif /* CONFIG_OF_EARLY_FLATTREE */
 
-static void __init bootcmdline_init(char **cmdline_p)
+static void __init bootcmdline_init(void)
 {
 	bool dt_bootargs = false;
 
@@ -658,7 +658,7 @@ static void __init arch_mem_init(char **cmdline_p)
 	plat_mem_setup();
 	memblock_set_bottom_up(true);
 
-	bootcmdline_init(cmdline_p);
+	bootcmdline_init();
 	strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
 	*cmdline_p = command_line;
 
-- 
2.1.0


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

* Re: [PATCH v2] MIPS: Remove useless parameter of bootcmdline_init()
  2020-05-18  7:08 [PATCH v2] MIPS: Remove useless parameter of bootcmdline_init() Zhi Li
@ 2020-05-19 16:04 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-19 16:04 UTC (permalink / raw)
  To: Zhi Li; +Cc: Tiezhu Yang, Xuefeng Li, linux-mips, linux-kernel

On Mon, May 18, 2020 at 03:08:08PM +0800, Zhi Li wrote:
> The parameter "cmdline_p" is useless in bootcmdline_init(),remove it.
> 
> Signed-off-by: Zhi Li <lizhi01@loongson.cn>

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

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

end of thread, other threads:[~2020-05-19 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-18  7:08 [PATCH v2] MIPS: Remove useless parameter of bootcmdline_init() Zhi Li
2020-05-19 16:04 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).