Remove register_sysctl() compatibility code

The register_sysctl() interface has been stable since Linux 2.6.21.
There is no longer a need to maintain compatibility code.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf
2014-09-30 17:10:35 -04:00
parent bb4dee3df2
commit b38bf6a4e3
3 changed files with 3 additions and 32 deletions
+3 -3
View File
@@ -1127,7 +1127,7 @@ spl_proc_init(void)
SENTRY;
#ifdef CONFIG_SYSCTL
spl_header = spl_register_sysctl_table(spl_root, 0);
spl_header = register_sysctl_table(spl_root);
if (spl_header == NULL)
SRETURN(-EUNATCH);
#endif /* CONFIG_SYSCTL */
@@ -1160,7 +1160,7 @@ out:
#endif
remove_proc_entry("spl", NULL);
#ifdef CONFIG_SYSCTL
spl_unregister_sysctl_table(spl_header);
unregister_sysctl_table(spl_header);
#endif /* CONFIG_SYSCTL */
}
@@ -1181,7 +1181,7 @@ spl_proc_fini(void)
#ifdef CONFIG_SYSCTL
ASSERT(spl_header != NULL);
spl_unregister_sysctl_table(spl_header);
unregister_sysctl_table(spl_header);
#endif /* CONFIG_SYSCTL */
SEXIT;