summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/ptdump/segment_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/ptdump/segment_regs.c')
-rw-r--r--arch/powerpc/mm/ptdump/segment_regs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/mm/ptdump/segment_regs.c b/arch/powerpc/mm/ptdump/segment_regs.c
index 501843664bb9..dde2fe8de4b2 100644
--- a/arch/powerpc/mm/ptdump/segment_regs.c
+++ b/arch/powerpc/mm/ptdump/segment_regs.c
@@ -55,10 +55,8 @@ static const struct file_operations sr_fops = {
static int __init sr_init(void)
{
- struct dentry *debugfs_file;
-
- debugfs_file = debugfs_create_file("segment_registers", 0400,
- powerpc_debugfs_root, NULL, &sr_fops);
- return debugfs_file ? 0 : -ENOMEM;
+ debugfs_create_file("segment_registers", 0400, powerpc_debugfs_root,
+ NULL, &sr_fops);
+ return 0;
}
device_initcall(sr_init);