]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
lib: remove error checking for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 08:24:43 +0000 (16:24 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:18:55 +0000 (10:18 -0700)
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 <machel@vivo.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/notifier-error-inject.c

index 2b24ea6c94979af020b3ef85f58bcea792b955ef..954c3412d22d630ad02c9051e417e8c4656bf961 100644 (file)
@@ -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;
 }