summaryrefslogtreecommitdiff
path: root/lib/error-inject.c
diff options
context:
space:
mode:
authorWang Ming <machel@vivo.com>2023-07-19 14:44:10 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:18:55 -0700
commita7284b0e75109040791338f807809ec14f096cc6 (patch)
tree3c256c6665934bb4ed2aafbb955cb15e95e51b1a /lib/error-inject.c
parentc3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a (diff)
lib: error-inject: remove error checking for debugfs_create_dir()
It is expected that most callers should _ignore_ the errors return by debugfs_create_dir() in ei_debugfs_init(). Link: https://lkml.kernel.org/r/20230719144355.6720-1-machel@vivo.com Signed-off-by: Wang Ming <machel@vivo.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/error-inject.c')
-rw-r--r--lib/error-inject.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/error-inject.c b/lib/error-inject.c
index 32c14770508e..887acd9a6ea6 100644
--- a/lib/error-inject.c
+++ b/lib/error-inject.c
@@ -217,8 +217,6 @@ static int __init ei_debugfs_init(void)
struct dentry *dir, *file;
dir = debugfs_create_dir("error_injection", NULL);
- if (!dir)
- return -ENOMEM;
file = debugfs_create_file("list", 0444, dir, NULL, &ei_fops);
if (!file) {