Skip to content

Commit

Permalink
lib: error-inject: remove error checking for debugfs_create_dir()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Wang Ming authored and akpm00 committed Aug 18, 2023
1 parent c3d2d45 commit a7284b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/error-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a7284b0

Please sign in to comment.