aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_gen.rs
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-03-19 16:33:39 +0000
committerDaniel Thompson <[email protected]>2025-03-28 21:28:28 +0000
commitafdbe49276accb87a0c7414e75864c78289ece2f (patch)
tree5f2d94e732fca28b9080c65e9abb25bdc113e7df /scripts/rustdoc_test_gen.rs
parentkdb: remove usage of static environment buffer (diff)
downloadkernel-afdbe49276accb87a0c7414e75864c78289ece2f.tar.gz
kernel-afdbe49276accb87a0c7414e75864c78289ece2f.zip
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 <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Reviewed-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions