diff options
| author | Thorsten Blum <[email protected]> | 2025-04-29 10:41:48 +0000 |
|---|---|---|
| committer | Christophe Leroy <[email protected]> | 2025-05-12 23:39:01 +0000 |
| commit | 61ddf5faa7cc091b409936d571ec1af34ce487a1 (patch) | |
| tree | a1088273fd40902b090374d6c317a2c0320ada39 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | soc: fsl: qbman: Remove const from portal->cgrs allocation type (diff) | |
| download | kernel-61ddf5faa7cc091b409936d571ec1af34ce487a1.tar.gz kernel-61ddf5faa7cc091b409936d571ec1af34ce487a1.zip | |
bus: fsl-mc: Use strscpy() instead of strscpy_pad()
Both destination buffers are already zero-initialized, making strscpy()
sufficient for safely copying 'obj_type'. The additional NUL-padding
performed by strscpy_pad() is unnecessary.
If the destination buffer has a fixed length, strscpy() automatically
determines its size using sizeof() when the argument is omitted. This
makes the explicit size arguments unnecessary.
No functional changes intended.
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Ioana Ciornei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christophe Leroy <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
