proc: use initializer for clearing some buffers
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 29 Sep 2023 16:30:18 +0000 (19:30 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:43:22 +0000 (14:43 -0700)
commit860a2e7fa4a186a78be904879f752858c96328ed
treea24ebecf52765b36fba8e6d60d8fde36144b23a1
parent867046cc7027703f60a46339ffde91a1970f2901
proc: use initializer for clearing some buffers

Save LOC by using dark magic of initialisation instead of memset().

Those buffer aren't passed to userspace directly so padding is not
an issue.

Link: https://lkml.kernel.org/r/3821d3a2-6e10-4629-b0d5-9519d828ab72@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/base.c
fs/proc/task_mmu.c