File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2511,7 +2511,7 @@ static int idt_init_dbgfs(struct idt_ntb_dev *ndev)
2511
2511
/* If the top directory is not created then do nothing */
2512
2512
if (IS_ERR_OR_NULL (dbgfs_topdir )) {
2513
2513
dev_info (& ndev -> ntb .pdev -> dev , "Top DebugFS directory absent" );
2514
- return PTR_ERR (dbgfs_topdir );
2514
+ return PTR_ERR_OR_ZERO (dbgfs_topdir );
2515
2515
}
2516
2516
2517
2517
/* Create the info file node */
@@ -2756,7 +2756,7 @@ static int idt_pci_probe(struct pci_dev *pdev,
2756
2756
2757
2757
/* Allocate the memory for IDT NTB device data */
2758
2758
ndev = idt_create_dev (pdev , id );
2759
- if (IS_ERR_OR_NULL (ndev ))
2759
+ if (IS_ERR (ndev ))
2760
2760
return PTR_ERR (ndev );
2761
2761
2762
2762
/* Initialize the basic PCI subsystem of the device */
You can’t perform that action at this time.
0 commit comments