When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -38,9 +38,6 @@ static void __init dma_atomic_pool_debugfs_init(void) · 37 unmodified lines | |||
| 38 | struct dentry *root; | 38 | struct dentry *root; |
| 39 | 39 | ||
| 40 | root = debugfs_create_dir("dma_pools", NULL); | 40 | root = debugfs_create_dir("dma_pools", NULL); |
| 41 | if (IS_ERR_OR_NULL(root)) | ||
| 42 | return; | ||
| 43 | |||
| 44 | debugfs_create_ulong("pool_size_dma", 0400, root, &pool_size_dma); | 41 | debugfs_create_ulong("pool_size_dma", 0400, root, &pool_size_dma); |
| 45 | debugfs_create_ulong("pool_size_dma32", 0400, root, &pool_size_dma32); | 42 | debugfs_create_ulong("pool_size_dma32", 0400, root, &pool_size_dma32); |
| 46 | debugfs_create_ulong("pool_size_kernel", 0400, root, &pool_size_kernel); | 43 | debugfs_create_ulong("pool_size_kernel", 0400, root, &pool_size_kernel); |