diff options
| author | Wang Ming <[email protected]> | 2023-07-19 14:44:10 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-18 17:18:55 +0000 |
| commit | a7284b0e75109040791338f807809ec14f096cc6 (patch) | |
| tree | 3c256c6665934bb4ed2aafbb955cb15e95e51b1a /lib/error-inject.c | |
| parent | lib: remove error checking for debugfs_create_dir() (diff) | |
| download | kernel-a7284b0e75109040791338f807809ec14f096cc6.tar.gz kernel-a7284b0e75109040791338f807809ec14f096cc6.zip | |
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/[email protected]
Signed-off-by: Wang Ming <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/error-inject.c')
| -rw-r--r-- | lib/error-inject.c | 2 |
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) { |
