summaryrefslogtreecommitdiff
path: root/arch/ia64
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2023-03-10 12:10:11 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2023-04-13 21:49:35 +0300
commit03860ef038e6435c5ea2bda24dc5698e0da60ebc (patch)
tree36ab2d284e87580cbd249006f0e701a0f8bff1c9 /arch/ia64
parent3d51cd8ea3c832c50c22e46354ac89e0964ea2d8 (diff)
downloadlinux-03860ef038e6435c5ea2bda24dc5698e0da60ebc.tar.xz
ia64: simplify one-level sysctl registration for kdump_ctl_table
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>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/kernel/crash.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/ia64/kernel/crash.c b/arch/ia64/kernel/crash.c
index 76730f34685c..88b3ce3e66cd 100644
--- a/arch/ia64/kernel/crash.c
+++ b/arch/ia64/kernel/crash.c
@@ -234,15 +234,6 @@ static struct ctl_table kdump_ctl_table[] = {
},
{ }
};
-
-static struct ctl_table sys_table[] = {
- {
- .procname = "kernel",
- .mode = 0555,
- .child = kdump_ctl_table,
- },
- { }
-};
#endif
static int
@@ -257,7 +248,7 @@ machine_crash_setup(void)
if((ret = register_die_notifier(&kdump_init_notifier_nb)) != 0)
return ret;
#ifdef CONFIG_SYSCTL
- register_sysctl_table(sys_table);
+ register_sysctl("kernel", kdump_ctl_table);
#endif
return 0;
}