ixgbe: don't check NULL for debugfs_remove_recursive
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 9 Apr 2014 06:03:15 +0000 (06:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 May 2014 12:28:24 +0000 (05:28 -0700)
The debugfs_remove_recursive function is NULL-safe, so we don't need to
check here ourselves.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c

index 472b0f4..5e2c1e3 100644 (file)
@@ -253,8 +253,7 @@ void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter)
  **/
 void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter)
 {
-       if (adapter->ixgbe_dbg_adapter)
-               debugfs_remove_recursive(adapter->ixgbe_dbg_adapter);
+       debugfs_remove_recursive(adapter->ixgbe_dbg_adapter);
        adapter->ixgbe_dbg_adapter = NULL;
 }