mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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:
parent
723be3c6ab
commit
3c4e4ec957
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user