diff options
| author | Thorsten Blum <[email protected]> | 2025-03-08 19:46:32 +0000 |
|---|---|---|
| committer | Petr Pavlu <[email protected]> | 2025-03-10 10:56:26 +0000 |
| commit | 085c5e37427d22381efa6e8a660dd810e8ef36ef (patch) | |
| tree | 9bd59ddbc96136999d448311de343cba2f62f8a4 /scripts/generate_rust_analyzer.py | |
| parent | module: Replace deprecated strncpy() with strscpy() (diff) | |
| download | kernel-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
