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

Commit ec73942c authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher
Browse files

ixgbe: don't check NULL for debugfs_remove_recursive



The debugfs_remove_recursive function is NULL-safe, so we don't need to
check here ourselves.

Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 63b64de3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -253,7 +253,6 @@ 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);
	adapter->ixgbe_dbg_adapter = NULL;
}