Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Wang Ming and committed by
Andrew Morton
c3d2d45b 598f0046

-3
-3
lib/notifier-error-inject.c
··· 83 83 notifier_err_inject_dir = 84 84 debugfs_create_dir("notifier-error-inject", NULL); 85 85 86 - if (!notifier_err_inject_dir) 87 - return -ENOMEM; 88 - 89 86 return 0; 90 87 } 91 88