summaryrefslogtreecommitdiff
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2023-03-02 12:28:23 -0800
committerLuis Chamberlain <mcgrof@kernel.org>2023-05-02 19:23:29 -0700
commit9e7c73c0b9f49bc73818e08e6282a32b94d96168 (patch)
treefcc4c7db649ca650de3180956b309db5bd3195b6 /fs/proc/proc_sysctl.c
parent348551ddaf311c76b01cdcbaf61b6fef06a49144 (diff)
kernel: pid_namespace: simplify sysctls with register_sysctl()
register_sysctl_paths() is only required if your child (directories) have entries and pid_namespace does not. So use register_sysctl_init() instead where we don't care about the return value and use register_sysctl() where we do. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Acked-by: Jeff Xu <jeffxu@google.com> Link: https://lore.kernel.org/r/20230302202826.776286-9-mcgrof@kernel.org
Diffstat (limited to 'fs/proc/proc_sysctl.c')
0 files changed, 0 insertions, 0 deletions