From c3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a Mon Sep 17 00:00:00 2001 From: Wang Ming Date: Thu, 13 Jul 2023 16:24:43 +0800 Subject: [PATCH] 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/20230713082455.2415-1-machel@vivo.com Signed-off-by: Wang Ming Cc: Akinobu Mita Cc: David Hildenbrand Cc: Greg Kroah-Hartman Signed-off-by: Andrew Morton --- lib/notifier-error-inject.c | 3 --- 1 file changed, 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; }