summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-08-14 20:05:14 +0200
committerJakub Kicinski <kuba@kernel.org>2025-08-15 12:37:50 -0700
commit8159572936392b514e404bab2d60e47cebd5acfe (patch)
treeba9cbe1b763241d68b43eccacde1246fa8214bca /rust/helpers/helpers.c
parente63b162ef43eeb774edcb688bbf141bb468af485 (diff)
net: Space: Replace memset(0) + strscpy() with strscpy_pad()
Replace memset(0) followed by strscpy() with strscpy_pad() to improve netdev_boot_setup_add(). This avoids zeroing the memory before copying the string and ensures the destination buffer is only written to once, simplifying the code and improving efficiency. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250814180514.251000-2-thorsten.blum@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions