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.
Unified · Split
| @@ -38,9 +38,6 @@ static void __init dma_atomic_pool_debugfs_init(void) · 37 unmodified lines | ||
| 38 | 38 | struct dentry *root; |
| 39 | 39 | |
| 40 | 40 | root = debugfs_create_dir("dma_pools", NULL); |
| 41 | − if (IS_ERR_OR_NULL(root)) | |
| 42 | − return; | |
| 43 | − | |
| 44 | 41 | debugfs_create_ulong("pool_size_dma", 0400, root, &pool_size_dma); |
| 45 | 42 | debugfs_create_ulong("pool_size_dma32", 0400, root, &pool_size_dma32); |
| 46 | 43 | debugfs_create_ulong("pool_size_kernel", 0400, root, &pool_size_kernel); |