summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/asids-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/asids-debugfs.c')
-rw-r--r--arch/sh/mm/asids-debugfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sh/mm/asids-debugfs.c b/arch/sh/mm/asids-debugfs.c
index 74c03ecc487..ecfc6b0c1da 100644
--- a/arch/sh/mm/asids-debugfs.c
+++ b/arch/sh/mm/asids-debugfs.c
@@ -67,10 +67,8 @@ static int __init asids_debugfs_init(void)
NULL, &asids_debugfs_fops);
if (!asids_dentry)
return -ENOMEM;
- if (IS_ERR(asids_dentry))
- return PTR_ERR(asids_dentry);
- return 0;
+ return PTR_ERR_OR_ZERO(asids_dentry);
}
module_init(asids_debugfs_init);