m68k: setup: 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@linux.dev>
Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20250302230532.245884-2-thorsten.blum@linux.dev
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Thorsten Blum 2025-03-03 00:05:31 +01:00 committed by Geert Uytterhoeven
parent 723be3c6ab
commit 3c4e4ec957

View File

@ -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: {