mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 12:00:28 +07:00
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: 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>
This commit is contained in:
parent
63b64de3b3
commit
ec73942c56
@ -253,8 +253,7 @@ void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter)
|
|||||||
**/
|
**/
|
||||||
void ixgbe_dbg_adapter_exit(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;
|
adapter->ixgbe_dbg_adapter = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user