summaryrefslogtreecommitdiffstats
path: root/kernel/dma
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-11-07 11:03:12 +0100
committerChristoph Hellwig <hch@lst.de>2020-11-27 10:33:42 +0100
commit94035edcb4e3bbc9f445bee706722ef64e044095 (patch)
tree2f3c6cfa6c1f930ae23d97f169a85f65645a089f /kernel/dma
parentpowerpc/dma: Fallback to dma_ops when persistent memory present (diff)
downloadlinux-94035edcb4e3bbc9f445bee706722ef64e044095.tar.xz
linux-94035edcb4e3bbc9f445bee706722ef64e044095.zip
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.c3
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);