summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2024-09-08 12:27:45 +0300
committerChristian Brauner <brauner@kernel.org>2024-09-09 11:51:20 +0300
commit4ad5f9a021bd7e3a48a8d11c52cef36d5e05ffcc (patch)
treeba3242693078a3d20ad9b1c9eb3154b78c7af805 /rust/helpers/helpers.c
parentd80b065bb1721f88be705ca1dfc69ec1c685925e (diff)
downloadlinux-4ad5f9a021bd7e3a48a8d11c52cef36d5e05ffcc.tar.xz
proc: fold kmalloc() + strcpy() into kmemdup()
strcpy() will recalculate string length second time which is unnecessary in this case. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Link: https://lore.kernel.org/r/90af27c1-0b86-47a6-a6c8-61a58b8aa747@p183 Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions