Commit e42fa209 authored by Fabian Frederick's avatar Fabian Frederick Committed by Roland Dreier

IPoIB: Remove unnecessary test for NULL before debugfs_remove()

Fix checkpatch warning:

    WARNING: debugfs_remove(NULL) is safe this check is probably not required
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent dd57c930
...@@ -281,10 +281,8 @@ void ipoib_delete_debug_files(struct net_device *dev) ...@@ -281,10 +281,8 @@ void ipoib_delete_debug_files(struct net_device *dev)
{ {
struct ipoib_dev_priv *priv = netdev_priv(dev); struct ipoib_dev_priv *priv = netdev_priv(dev);
if (priv->mcg_dentry) debugfs_remove(priv->mcg_dentry);
debugfs_remove(priv->mcg_dentry); debugfs_remove(priv->path_dentry);
if (priv->path_dentry)
debugfs_remove(priv->path_dentry);
} }
int ipoib_register_debugfs(void) int ipoib_register_debugfs(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment