drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: remove unnecessary null test before...
authorFabian Frederick <fabf@skynet.be>
Fri, 27 Jun 2014 20:51:52 +0000 (22:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 00:04:42 +0000 (17:04 -0700)
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

index 921f80500032c573050f2d6a0dcaa28848e8ba71..2b438bd68c73bbe2ae023a759c921421c12793f2 100644 (file)
@@ -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 ...