aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pic32/pic32mzda/init.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2022-08-18 22:59:43 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-09-12 15:34:04 +0200
commit877336c1856ea4277994ba7cdd8aede416e75a4e (patch)
treeff27b55e678687db1c1eabb4f89436d9208f8e21 /arch/mips/pic32/pic32mzda/init.c
parentMIPS: Fix comment typo (diff)
downloadlinux-dev-877336c1856ea4277994ba7cdd8aede416e75a4e.tar.xz
linux-dev-877336c1856ea4277994ba7cdd8aede416e75a4e.zip
MIPS: move from strlcpy with unused retval to strscpy
Follow the advice of the below link and prefer 'strscpy' in this subsystem. Conversion is 1:1 because the return value is not used. Generated by a coccinelle script. Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/pic32/pic32mzda/init.c')
-rw-r--r--arch/mips/pic32/pic32mzda/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pic32/pic32mzda/init.c b/arch/mips/pic32/pic32mzda/init.c
index d9c8c4e46aff..08c46cf122d7 100644
--- a/arch/mips/pic32/pic32mzda/init.c
+++ b/arch/mips/pic32/pic32mzda/init.c
@@ -44,7 +44,7 @@ void __init plat_mem_setup(void)
pr_info(" builtin_cmdline : %s\n", CONFIG_CMDLINE);
#endif
if (dtb != __dtb_start)
- strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
+ strscpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
#ifdef CONFIG_EARLY_PRINTK
fw_init_early_console(-1);