From: Luis Chamberlain Date: Fri, 10 Mar 2023 21:48:17 +0000 (-0800) Subject: coda: simplify one-level sysctl registration for coda_table X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1119aaa823e6cc35f2e8c8793cfa58d923a15c1b;p=linux.git coda: simplify one-level sysctl registration for coda_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. Acked-by: Jan Harkes Signed-off-by: Luis Chamberlain --- diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c index fda3b702b1c5a..a247c14aaab70 100644 --- a/fs/coda/sysctl.c +++ b/fs/coda/sysctl.c @@ -39,19 +39,10 @@ static struct ctl_table coda_table[] = { {} }; -static struct ctl_table fs_table[] = { - { - .procname = "coda", - .mode = 0555, - .child = coda_table - }, - {} -}; - void coda_sysctl_init(void) { if ( !fs_table_header ) - fs_table_header = register_sysctl_table(fs_table); + fs_table_header = register_sysctl("coda", coda_table); } void coda_sysctl_clean(void)