projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c23f9e
)
m68k: Move from strlcpy with unused retval to strscpy
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 20:59:41 +0000
(22:59 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Mon, 19 Sep 2022 08:40:58 +0000
(10:40 +0200)
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>
Link:
https://lore.kernel.org/r/20220818205941.6240-1-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/setup_mm.c
patch
|
blob
|
history
diff --git
a/arch/m68k/kernel/setup_mm.c
b/arch/m68k/kernel/setup_mm.c
index e62fa8f2149b3574df6bed602e28571aa7d73d0c..06ee394db610b2d7b4437298e88ef5082b4fb323 100644
(file)
--- a/
arch/m68k/kernel/setup_mm.c
+++ b/
arch/m68k/kernel/setup_mm.c
@@
-148,7
+148,7
@@
static void __init m68k_parse_bootinfo(const struct bi_record *record)
break;
case BI_COMMAND_LINE:
- str
l
cpy(m68k_command_line, data,
+ str
s
cpy(m68k_command_line, data,
sizeof(m68k_command_line));
break;