diff options
Diffstat (limited to 'arch/mips/kernel/spinlock_test.c')
| -rw-r--r-- | arch/mips/kernel/spinlock_test.c | 21 | 
1 files changed, 4 insertions, 17 deletions
diff --git a/arch/mips/kernel/spinlock_test.c b/arch/mips/kernel/spinlock_test.c index eaed550e79a2..ab4e3e1b138d 100644 --- a/arch/mips/kernel/spinlock_test.c +++ b/arch/mips/kernel/spinlock_test.c @@ -118,23 +118,10 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_multi, multi_get, NULL, "%llu\n");  static int __init spinlock_test(void)  { -	struct dentry *d; - -	if (!mips_debugfs_dir) -		return -ENODEV; - -	d = debugfs_create_file("spin_single", S_IRUGO, -				mips_debugfs_dir, NULL, -				&fops_ss); -	if (!d) -		return -ENOMEM; - -	d = debugfs_create_file("spin_multi", S_IRUGO, -				mips_debugfs_dir, NULL, -				&fops_multi); -	if (!d) -		return -ENOMEM; - +	debugfs_create_file("spin_single", S_IRUGO, mips_debugfs_dir, NULL, +			    &fops_ss); +	debugfs_create_file("spin_multi", S_IRUGO, mips_debugfs_dir, NULL, +			    &fops_multi);  	return 0;  }  device_initcall(spinlock_test);  |