diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2023-03-11 00:32:47 +0100 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-03-22 19:47:21 +0100 |
commit | 3f6cc47f5eb40d96ce8cf443282a2c29fd629a76 (patch) | |
tree | 82449ee5da895b52db0bbffd9dfa7f6a60560c7c /arch/x86/entry/vdso/vdso32-setup.c | |
parent | x86/platform/intel-mid: Remove unused definitions from intel-mid.h (diff) | |
download | linux-3f6cc47f5eb40d96ce8cf443282a2c29fd629a76.tar.xz linux-3f6cc47f5eb40d96ce8cf443282a2c29fd629a76.zip |
x86: Simplify one-level sysctl registration for abi_table2
There is no need to declare an extra tables to just create directory,
this can be easily be done with a prefix path with register_sysctl().
Simplify this registration.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20230310233248.3965389-2-mcgrof%40kernel.org
Diffstat (limited to 'arch/x86/entry/vdso/vdso32-setup.c')
-rw-r--r-- | arch/x86/entry/vdso/vdso32-setup.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/entry/vdso/vdso32-setup.c b/arch/x86/entry/vdso/vdso32-setup.c index 3b300a773c7e..f3b3cacbcbb0 100644 --- a/arch/x86/entry/vdso/vdso32-setup.c +++ b/arch/x86/entry/vdso/vdso32-setup.c @@ -70,18 +70,9 @@ static struct ctl_table abi_table2[] = { {} }; -static struct ctl_table abi_root_table2[] = { - { - .procname = "abi", - .mode = 0555, - .child = abi_table2 - }, - {} -}; - static __init int ia32_binfmt_init(void) { - register_sysctl_table(abi_root_table2); + register_sysctl("abi", abi_table2); return 0; } __initcall(ia32_binfmt_init); |