Revert "ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()"

This reverts commit 557445f81b.
This commit is contained in:
Ksawlii 2024-11-24 00:23:20 +01:00
parent f0600dafb7
commit d2ef50fd36

View file

@ -778,7 +778,7 @@ static void ndev_init_debugfs(struct intel_ntb_dev *ndev)
ndev->debugfs_dir =
debugfs_create_dir(pci_name(ndev->ntb.pdev),
debugfs_dir);
if (IS_ERR(ndev->debugfs_dir))
if (!ndev->debugfs_dir)
ndev->debugfs_info = NULL;
else
ndev->debugfs_info =