Skip to content

Commit 3f6cc47

Browse files
mcgrofhansendc
authored andcommitted
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
1 parent b72d696 commit 3f6cc47

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

arch/x86/entry/vdso/vdso32-setup.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,9 @@ static struct ctl_table abi_table2[] = {
7070
{}
7171
};
7272

73-
static struct ctl_table abi_root_table2[] = {
74-
{
75-
.procname = "abi",
76-
.mode = 0555,
77-
.child = abi_table2
78-
},
79-
{}
80-
};
81-
8273
static __init int ia32_binfmt_init(void)
8374
{
84-
register_sysctl_table(abi_root_table2);
75+
register_sysctl("abi", abi_table2);
8576
return 0;
8677
}
8778
__initcall(ia32_binfmt_init);

0 commit comments

Comments
 (0)