[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250302230532.245884-2-thorsten.blum@linux.dev>
Date: Mon, 3 Mar 2025 00:05:31 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Geert Uytterhoeven <geert@...ux-m68k.org>,
Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linux-m68k@...ts.linux-m68k.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] m68k: mm: Remove size argument when calling strscpy()
The size parameter of strscpy() is optional and specifying the size of
the destination buffer is unnecessary. Remove it to simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
arch/m68k/kernel/setup_mm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 48ce67947678..0fba32552836 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -147,8 +147,7 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
break;
case BI_COMMAND_LINE:
- strscpy(m68k_command_line, data,
- sizeof(m68k_command_line));
+ strscpy(m68k_command_line, data);
break;
case BI_RNG_SEED: {
--
2.48.1
Powered by blists - more mailing lists