diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2020-11-07 18:03:12 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-11-27 10:33:42 +0100 |
commit | 94035edcb4e3bbc9f445bee706722ef64e044095 (patch) | |
tree | 2f3c6cfa6c1f930ae23d97f169a85f65645a089f /kernel/dma | |
parent | bf6e2d562bbc4d115cf322b0bca57fe5bbd26f48 (diff) |
dma-pool: no need to check return value of debugfs_create functions
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.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma')
-rw-r--r-- | kernel/dma/pool.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c index d4637f72239b..5f84e6cdb78e 100644 --- a/kernel/dma/pool.c +++ b/kernel/dma/pool.c @@ -38,9 +38,6 @@ static void __init dma_atomic_pool_debugfs_init(void) struct dentry *root; root = debugfs_create_dir("dma_pools", NULL); - if (IS_ERR_OR_NULL(root)) - return; - debugfs_create_ulong("pool_size_dma", 0400, root, &pool_size_dma); debugfs_create_ulong("pool_size_dma32", 0400, root, &pool_size_dma32); debugfs_create_ulong("pool_size_kernel", 0400, root, &pool_size_kernel); |