]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bna: Remove error checking for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 09:51:06 +0000 (17:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 08:09:12 +0000 (09:09 +0100)
It is expected that most callers should _ignore_ the errors return by
debugfs_create_dir() in bnad_debugfs_init().

Signed-off-by: Wang Ming <machel@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad_debugfs.c

index 04ad0f2b9677e1405a85e160935acc5ae757acc2..7246e13dd559fc37170c791644cf5a8fd8d04fcf 100644 (file)
@@ -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);