Commit 3c4e4ec9 authored by Thorsten Blum's avatar Thorsten Blum Committed by Geert Uytterhoeven
Browse files

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: default avatarThorsten Blum <thorsten.blum@linux.dev>
Tested-by: default avatarJean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20250302230532.245884-2-thorsten.blum@linux.dev


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 723be3c6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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: {