diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-27 20:51:52 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-03 00:04:42 (GMT) |
commit | 9f16dc2ec7cb3527c66581ad762876ba1f774cdb (patch) | |
tree | 37246cb69ba92d289cbeb8f9a50cf40290fece0e /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 9fe516ba3fb29b6f6a752ffd93342fdee500ec01 (diff) | |
download | linux-9f16dc2ec7cb3527c66581ad762876ba1f774cdb.tar.xz |
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: remove unnecessary null test before debugfs_remove_recursive
Fix checkpatch warning:
"WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required"
Cc: Hariprasad S <hariprasad@chelsio.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 921f805..2b438bd 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -6637,8 +6637,7 @@ static void remove_one(struct pci_dev *pdev) if (adapter->port[i]->reg_state == NETREG_REGISTERED) unregister_netdev(adapter->port[i]); - if (adapter->debugfs_root) - debugfs_remove_recursive(adapter->debugfs_root); + debugfs_remove_recursive(adapter->debugfs_root); /* If we allocated filters, free up state associated with any * valid filters ... |