fs-verity: simplify sysctls with register_sysctl()
[linux-2.6-microblaze.git] / fs / verity / signature.c
index e7d3ca9..b8c51ad 100644 (file)
@@ -88,12 +88,6 @@ int fsverity_verify_signature(const struct fsverity_info *vi,
 #ifdef CONFIG_SYSCTL
 static struct ctl_table_header *fsverity_sysctl_header;
 
-static const struct ctl_path fsverity_sysctl_path[] = {
-       { .procname = "fs", },
-       { .procname = "verity", },
-       { }
-};
-
 static struct ctl_table fsverity_sysctl_table[] = {
        {
                .procname       = "require_signatures",
@@ -109,8 +103,7 @@ static struct ctl_table fsverity_sysctl_table[] = {
 
 static int __init fsverity_sysctl_init(void)
 {
-       fsverity_sysctl_header = register_sysctl_paths(fsverity_sysctl_path,
-                                                      fsverity_sysctl_table);
+       fsverity_sysctl_header = register_sysctl("fs/verity", fsverity_sysctl_table);
        if (!fsverity_sysctl_header) {
                pr_err("sysctl registration failed!\n");
                return -ENOMEM;