.. | .. |
---|
149 | 149 | |
---|
150 | 150 | static int __init tlb_debugfs_init(void) |
---|
151 | 151 | { |
---|
152 | | - struct dentry *itlb, *utlb; |
---|
153 | | - |
---|
154 | | - itlb = debugfs_create_file("itlb", S_IRUSR, arch_debugfs_dir, |
---|
155 | | - (unsigned int *)TLB_TYPE_ITLB, |
---|
156 | | - &tlb_debugfs_fops); |
---|
157 | | - if (unlikely(!itlb)) |
---|
158 | | - return -ENOMEM; |
---|
159 | | - |
---|
160 | | - utlb = debugfs_create_file("utlb", S_IRUSR, arch_debugfs_dir, |
---|
161 | | - (unsigned int *)TLB_TYPE_UTLB, |
---|
162 | | - &tlb_debugfs_fops); |
---|
163 | | - if (unlikely(!utlb)) { |
---|
164 | | - debugfs_remove(itlb); |
---|
165 | | - return -ENOMEM; |
---|
166 | | - } |
---|
167 | | - |
---|
| 152 | + debugfs_create_file("itlb", S_IRUSR, arch_debugfs_dir, |
---|
| 153 | + (void *)TLB_TYPE_ITLB, &tlb_debugfs_fops); |
---|
| 154 | + debugfs_create_file("utlb", S_IRUSR, arch_debugfs_dir, |
---|
| 155 | + (void *)TLB_TYPE_UTLB, &tlb_debugfs_fops); |
---|
168 | 156 | return 0; |
---|
169 | 157 | } |
---|
170 | 158 | module_init(tlb_debugfs_init); |
---|