diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-14 10:27:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-14 10:27:47 -0700 |
commit | 9bc446100334dbbc14eb3757274ef08746c3f9bd (patch) | |
tree | a5f1624651456f39f2785dcc6095e7b926f655d7 | |
parent | f3ca4c55a6581c46e9f4a592dd698a7c67a713dd (diff) | |
parent | 226a893bbb1f4495d7139fd57143475ada0de61d (diff) | |
download | linux-9bc446100334dbbc14eb3757274ef08746c3f9bd.tar.bz2 |
Merge tag 'microblaze-v5.1-rc1' of git://git.monstr.eu/linux-2.6-microblaze
Pull Microblaze update from Michal Simek:
"Simplify debugfs initialization"
* tag 'microblaze-v5.1-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
microblaze: no need to check return value of debugfs_create functions
-rw-r--r-- | arch/microblaze/kernel/setup.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index bbd6968ce55b..522a0c5d9c59 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c @@ -192,23 +192,14 @@ struct dentry *of_debugfs_root; static int microblaze_debugfs_init(void) { of_debugfs_root = debugfs_create_dir("microblaze", NULL); - - return of_debugfs_root == NULL; + return 0; } arch_initcall(microblaze_debugfs_init); # ifdef CONFIG_MMU static int __init debugfs_tlb(void) { - struct dentry *d; - - if (!of_debugfs_root) - return -ENODEV; - - d = debugfs_create_u32("tlb_skip", S_IRUGO, of_debugfs_root, &tlb_skip); - if (!d) - return -ENOMEM; - + debugfs_create_u32("tlb_skip", S_IRUGO, of_debugfs_root, &tlb_skip); return 0; } device_initcall(debugfs_tlb); |