summaryrefslogtreecommitdiff
path: root/arch/mips/mm/sc-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/sc-debugfs.c')
-rw-r--r--arch/mips/mm/sc-debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mm/sc-debugfs.c b/arch/mips/mm/sc-debugfs.c
index 5eefe3281..01f1154cd 100644
--- a/arch/mips/mm/sc-debugfs.c
+++ b/arch/mips/mm/sc-debugfs.c
@@ -73,8 +73,8 @@ static int __init sc_debugfs_init(void)
file = debugfs_create_file("prefetch", S_IRUGO | S_IWUSR, dir,
NULL, &sc_prefetch_fops);
- if (IS_ERR(file))
- return PTR_ERR(file);
+ if (!file)
+ return -ENOMEM;
return 0;
}