From: Wang Ming Date: Thu, 13 Jul 2023 08:24:43 +0000 (+0800) Subject: lib: remove error checking for debugfs_create_dir() X-Git-Tag: v6.6-rc1~155^2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3d2d45b06581bc23a93dfd7e9e4662e4c0cb29a;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/lib/notifier-error-inject.c b/lib/notifier-error-inject.c index 2b24ea6c94979..954c3412d22d6 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; }