Skip to content

Commit

Permalink
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: remove unnecessary n…
Browse files Browse the repository at this point in the history
…ull 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>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Jul 3, 2014
1 parent 9fe516b commit 9f16dc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down

0 comments on commit 9f16dc2

Please sign in to comment.