diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-03-10 22:23:35 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-10 22:50:30 +0300 |
commit | fd3f5d385a52531589c8a7a26d9e108aa1d3f52e (patch) | |
tree | 7ca0a5cea115815bdcc57df89a59acde37ec3283 /tools/perf/scripts/python/task-analyzer.py | |
parent | 7a310c644cf571fbdb1d447a1dc39cf048634589 (diff) | |
download | linux-fd3f5d385a52531589c8a7a26d9e108aa1d3f52e.tar.xz |
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.dev
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions