summaryrefslogtreecommitdiff
path: root/drivers/net/bonding/bond_debugfs.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-10 13:17:17 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-11 01:25:47 +0300
commitfedcc6da10f33098d76b45adefa1b4e92a261748 (patch)
treecbf0ccbef1b85031b2b3051b7ced3a2ecea60929 /drivers/net/bonding/bond_debugfs.c
parenta62052ba2aecb9269a32efeb3e22f96b83a13304 (diff)
downloadlinux-fedcc6da10f33098d76b45adefa1b4e92a261748.tar.xz
bonding: no need to print a message if debugfs_create_dir() fails
The debugfs core now will print a message if this function fails, so don't duplicate that logic. Also, no need to change the code logic if the call fails either, as no debugfs calls should interrupt normal kernel code for any reason. Cc: Jay Vosburgh <j.vosburgh@gmail.com> Cc: Veaceslav Falico <vfalico@gmail.com> Cc: Andy Gospodarek <andy@greyhouse.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: netdev@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_debugfs.c')
-rw-r--r--drivers/net/bonding/bond_debugfs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c
index 1360f1ffe070..f3f86ef68ae0 100644
--- a/drivers/net/bonding/bond_debugfs.c
+++ b/drivers/net/bonding/bond_debugfs.c
@@ -55,11 +55,6 @@ void bond_debug_register(struct bonding *bond)
bond->debug_dir =
debugfs_create_dir(bond->dev->name, bonding_debug_root);
- if (!bond->debug_dir) {
- netdev_warn(bond->dev, "failed to register to debugfs\n");
- return;
- }
-
debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir,
bond, &bond_debug_rlb_hash_fops);
}