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

Commit 9f16dc2e authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: remove unnecessary null test...


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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9fe516ba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -6637,7 +6637,6 @@ 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);

		/* If we allocated filters, free up state associated with any