OSDN Git Service

Merge branch 'for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[tomoyo/tomoyo-test1.git] / arch / sh / mm / pmb.c
index a53a040..b59bad8 100644 (file)
@@ -861,13 +861,8 @@ static const struct file_operations pmb_debugfs_fops = {
 
 static int __init pmb_debugfs_init(void)
 {
-       struct dentry *dentry;
-
-       dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
-                                    arch_debugfs_dir, NULL, &pmb_debugfs_fops);
-       if (!dentry)
-               return -ENOMEM;
-
+       debugfs_create_file("pmb", S_IFREG | S_IRUGO, arch_debugfs_dir, NULL,
+                           &pmb_debugfs_fops);
        return 0;
 }
 subsys_initcall(pmb_debugfs_init);