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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue