mirror of
https://github.com/torvalds/linux.git
synced 2024-11-04 11:04:38 +00:00
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
dd57c9308a
commit
e42fa2092c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user