kernel/arch/mips/kernel/segment.c
.. .. @@ -95,18 +95,9 @@ 95 95 96 96 static int __init segments_info(void) 97 97 { 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);110 101 return 0; 111 102 } 112 103