cpufreq: maple: Remove redundant code from maple_cpufreq_init()
[linux-2.6-block.git] / mm / page_owner.c
index 28b06524939fa853307307469c76ac76d7955304..925b6f44a444afcddc2a634b8fafb3626eaeb16d 100644 (file)
@@ -625,16 +625,14 @@ static const struct file_operations proc_page_owner_operations = {
 
 static int __init pageowner_init(void)
 {
-       struct dentry *dentry;
-
        if (!static_branch_unlikely(&page_owner_inited)) {
                pr_info("page_owner is disabled\n");
                return 0;
        }
 
-       dentry = debugfs_create_file("page_owner", 0400, NULL,
-                                    NULL, &proc_page_owner_operations);
+       debugfs_create_file("page_owner", 0400, NULL, NULL,
+                           &proc_page_owner_operations);
 
-       return PTR_ERR_OR_ZERO(dentry);
+       return 0;
 }
 late_initcall(pageowner_init)