forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/sh/mm/tlb-debugfs.c
....@@ -149,22 +149,10 @@
149149
150150 static int __init tlb_debugfs_init(void)
151151 {
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);
168156 return 0;
169157 }
170158 module_init(tlb_debugfs_init);