summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-03-19 19:33:39 +0300
committerDaniel Thompson <daniel@riscstar.com>2025-03-29 00:28:28 +0300
commitafdbe49276accb87a0c7414e75864c78289ece2f (patch)
tree5f2d94e732fca28b9080c65e9abb25bdc113e7df /tools/perf/scripts/python/task-analyzer.py
parenta30d4ff8193ef768dbb524824c7aa07c5486a63a (diff)
downloadlinux-afdbe49276accb87a0c7414e75864c78289ece2f.tar.xz
kdb: Remove optional size arguments from strscpy() calls
If the destination buffer has a fixed length, strscpy() automatically determines the size of the destination buffer using sizeof() if the argument is omitted. This makes the explicit sizeof() unnecessary. Furthermore, CMD_BUFLEN is equal to sizeof(kdb_prompt_str) and can also be removed. Remove them to shorten and simplify the code. No functional changes intended. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Justin Stitt <justinstitt@google.com> Link: https://lore.kernel.org/r/20250319163341.2123-2-thorsten.blum@linux.dev Signed-off-by: Daniel Thompson <daniel@riscstar.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions