hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/mips/kernel/segment.c
....@@ -95,18 +95,9 @@
9595
9696 static int __init segments_info(void)
9797 {
98
- struct dentry *segments;
99
-
100
- if (cpu_has_segments) {
101
- if (!mips_debugfs_dir)
102
- return -ENODEV;
103
-
104
- segments = debugfs_create_file("segments", S_IRUGO,
105
- mips_debugfs_dir, NULL,
106
- &segments_fops);
107
- if (!segments)
108
- return -ENOMEM;
109
- }
98
+ if (cpu_has_segments)
99
+ debugfs_create_file("segments", S_IRUGO, mips_debugfs_dir, NULL,
100
+ &segments_fops);
110101 return 0;
111102 }
112103