diff options
Diffstat (limited to 'fs/coda/sysctl.c')
| -rw-r--r-- | fs/coda/sysctl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c index fda3b702b1c5..0df46f09b6cc 100644 --- a/fs/coda/sysctl.c +++ b/fs/coda/sysctl.c @@ -14,7 +14,7 @@ static struct ctl_table_header *fs_table_header; -static struct ctl_table coda_table[] = { +static const struct ctl_table coda_table[] = { { .procname = "timeout", .data = &coda_timeout, @@ -36,22 +36,12 @@ static struct ctl_table coda_table[] = { .mode = 0600, .proc_handler = proc_dointvec }, - {} -}; - -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) |
