Revert "ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()"
This reverts commit 557445f81b
.
This commit is contained in:
parent
f0600dafb7
commit
d2ef50fd36
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ static void ndev_init_debugfs(struct intel_ntb_dev *ndev)
|
||||||
ndev->debugfs_dir =
|
ndev->debugfs_dir =
|
||||||
debugfs_create_dir(pci_name(ndev->ntb.pdev),
|
debugfs_create_dir(pci_name(ndev->ntb.pdev),
|
||||||
debugfs_dir);
|
debugfs_dir);
|
||||||
if (IS_ERR(ndev->debugfs_dir))
|
if (!ndev->debugfs_dir)
|
||||||
ndev->debugfs_info = NULL;
|
ndev->debugfs_info = NULL;
|
||||||
else
|
else
|
||||||
ndev->debugfs_info =
|
ndev->debugfs_info =
|
||||||
|
|
Loading…
Add table
Reference in a new issue