Skip to content

Commit 3c4e4ec

Browse files
tobluxgeertu
authored andcommitted
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>
1 parent 723be3c commit 3c4e4ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/m68k/kernel/setup_mm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
147147
break;
148148

149149
case BI_COMMAND_LINE:
150-
strscpy(m68k_command_line, data,
151-
sizeof(m68k_command_line));
150+
strscpy(m68k_command_line, data);
152151
break;
153152

154153
case BI_RNG_SEED: {

0 commit comments

Comments
 (0)