aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-03-08 19:46:32 +0000
committerPetr Pavlu <[email protected]>2025-03-10 10:56:26 +0000
commit085c5e37427d22381efa6e8a660dd810e8ef36ef (patch)
tree9bd59ddbc96136999d448311de343cba2f62f8a4 /scripts/generate_rust_analyzer.py
parentmodule: Replace deprecated strncpy() with strscpy() (diff)
downloadkernel-085c5e37427d22381efa6e8a660dd810e8ef36ef.tar.gz
kernel-085c5e37427d22381efa6e8a660dd810e8ef36ef.zip
module: Remove unnecessary size argument when calling strscpy()
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() unnecessary. Remove it to shorten and simplify the code. Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions