aboutsummaryrefslogtreecommitdiffstats
path: root/lib/notifier-error-inject.c
diff options
context:
space:
mode:
authorWang Ming <[email protected]>2023-07-13 08:24:43 +0000
committerAndrew Morton <[email protected]>2023-08-18 17:18:55 +0000
commitc3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a (patch)
tree707a3f7e6f28920964859fc29ab7b1a452376074 /lib/notifier-error-inject.c
parentkernel: relay: remove unnecessary NULL values from relay_open_buf (diff)
downloadkernel-c3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a.tar.gz
kernel-c3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a.zip
lib: remove error checking for debugfs_create_dir()
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]>
Diffstat (limited to 'lib/notifier-error-inject.c')
-rw-r--r--lib/notifier-error-inject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/notifier-error-inject.c b/lib/notifier-error-inject.c
index 2b24ea6c9497..954c3412d22d 100644
--- a/lib/notifier-error-inject.c
+++ b/lib/notifier-error-inject.c
@@ -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;
}