Commit 4ad23d23 authored by Wang Ming's avatar Wang Ming Committed by David S. Miller
Browse files

bna: Remove error checking for debugfs_create_dir()



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

Signed-off-by: default avatarWang Ming <machel@vivo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d6d537d
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -512,11 +512,6 @@ bnad_debugfs_init(struct bnad *bnad)
	if (!bnad->port_debugfs_root) {
		bnad->port_debugfs_root =
			debugfs_create_dir(name, bna_debugfs_root);
		if (!bnad->port_debugfs_root) {
			netdev_warn(bnad->netdev,
				    "debugfs root dir creation failed\n");
			return;
		}

		atomic_inc(&bna_debugfs_port_count);