Skip to content

Commit 4ad23d2

Browse files
Wang Mingdavem330
authored andcommitted
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: Wang Ming <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1d6d537 commit 4ad23d2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/brocade/bna/bnad_debugfs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,6 @@ bnad_debugfs_init(struct bnad *bnad)
512512
if (!bnad->port_debugfs_root) {
513513
bnad->port_debugfs_root =
514514
debugfs_create_dir(name, bna_debugfs_root);
515-
if (!bnad->port_debugfs_root) {
516-
netdev_warn(bnad->netdev,
517-
"debugfs root dir creation failed\n");
518-
return;
519-
}
520515

521516
atomic_inc(&bna_debugfs_port_count);
522517

0 commit comments

Comments
 (0)