Commit a7284b0e authored by Wang Ming's avatar Wang Ming Committed by Andrew Morton
Browse files

lib: error-inject: remove error checking for debugfs_create_dir()

It is expected that most callers should _ignore_ the errors return by
debugfs_create_dir() in ei_debugfs_init().

Link: https://lkml.kernel.org/r/20230719144355.6720-1-machel@vivo.com


Signed-off-by: default avatarWang Ming <machel@vivo.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent c3d2d45b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -217,8 +217,6 @@ static int __init ei_debugfs_init(void)
	struct dentry *dir, *file;

	dir = debugfs_create_dir("error_injection", NULL);
	if (!dir)
		return -ENOMEM;

	file = debugfs_create_file("list", 0444, dir, NULL, &ei_fops);
	if (!file) {