summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-04-29 12:41:48 +0200
committerChristophe Leroy <christophe.leroy@csgroup.eu>2025-05-13 01:39:01 +0200
commit61ddf5faa7cc091b409936d571ec1af34ce487a1 (patch)
treea1088273fd40902b090374d6c317a2c0320ada39 /scripts/lib/kdoc/kdoc_output.py
parent5ddac92be4209f29ec26b3ec59a08fc76afe9ab1 (diff)
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 <thorsten.blum@linux.dev> Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20250429104149.66334-1-thorsten.blum@linux.dev Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions