Skip to content

Commit

Permalink
lib: 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 err_inject_init().

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wang Ming <[email protected]>
Cc: Akinobu Mita <[email protected]>
Cc: David Hildenbrand <[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 598f004 commit c3d2d45
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/notifier-error-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ static int __init err_inject_init(void)
notifier_err_inject_dir =
debugfs_create_dir("notifier-error-inject", NULL);

if (!notifier_err_inject_dir)
return -ENOMEM;

return 0;
}

Expand Down

0 comments on commit c3d2d45

Please sign in to comment.