diff options
| author | 2025-04-29 12:45:43 +0200 | |
|---|---|---|
| committer | 2025-09-20 21:29:48 -0500 | |
| commit | c8a8df494f7103f66d2d677347b7b941d8de71a1 (patch) | |
| tree | bc3f75c846c7e5daa49282caf68188bd0c6a9c4a /scripts/bpf_doc.py | |
| parent | rpmsg: core: Drop dev_pm_domain_detach() call (diff) | |
| download | linux-rng-c8a8df494f7103f66d2d677347b7b941d8de71a1.tar.xz linux-rng-c8a8df494f7103f66d2d677347b7b941d8de71a1.zip | |
rpmsg: Use strscpy() instead of strscpy_pad()
kzalloc() already zero-initializes the destination buffer, making
strscpy() sufficient for safely copying the name. The additional NUL-
padding performed by strscpy_pad() is unnecessary.
The size parameter is optional, and strscpy() automatically determines
the size of the destination buffer using sizeof() when the argument is
omitted. RPMSG_NAME_SIZE is equal to sizeof(rpdev->id.name) and can be
removed - remove it.
No functional changes intended.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250429104543.66927-2-thorsten.blum@linux.dev
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
