Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -281,9 +281,7 @@ void ipoib_delete_debug_files(struct net_device *dev)
{
	struct ipoib_dev_priv *priv = netdev_priv(dev);

	if (priv->mcg_dentry)
	debugfs_remove(priv->mcg_dentry);
	if (priv->path_dentry)
	debugfs_remove(priv->path_dentry);
}