Commit fd3f5d3
perf/core: Remove optional 'size' arguments from strscpy() calls
The 'size' parameter is optional and strscpy() automatically determines
the length of the destination buffer using sizeof() if the argument is
omitted. This makes the explicit sizeof() calls unnecessary.
Furthermore, KSYM_NAME_LEN is equal to sizeof(name) and can also be
removed. Remove them to shorten and simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250310192336.442994-1-thorsten.blum@linux.dev1 parent 7a310c6 commit fd3f5d3
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8665 | 8665 | | |
8666 | 8666 | | |
8667 | 8667 | | |
8668 | | - | |
| 8668 | + | |
8669 | 8669 | | |
8670 | 8670 | | |
8671 | 8671 | | |
| |||
9109 | 9109 | | |
9110 | 9110 | | |
9111 | 9111 | | |
9112 | | - | |
| 9112 | + | |
9113 | 9113 | | |
9114 | 9114 | | |
9115 | 9115 | | |
| |||
9533 | 9533 | | |
9534 | 9534 | | |
9535 | 9535 | | |
9536 | | - | |
| 9536 | + | |
9537 | 9537 | | |
9538 | 9538 | | |
9539 | 9539 | | |
| |||
0 commit comments