Skip to content

Commit d375df1

Browse files
committed
Merge branch 'pci/controller/dwc-nxp-s32g'
* pci/controller/dwc-nxp-s32g: PCI: s32g: Skip Root Port removal during success
2 parents 62dea87 + b79e087 commit d375df1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/pci/controller/dwc/pcie-nxp-s32g.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ static int s32g_pcie_parse_ports(struct device *dev, struct s32g_pcie *s32g_pp)
282282

283283
ret = s32g_pcie_parse_port(s32g_pp, of_port);
284284
if (ret)
285-
goto err_port;
285+
break;
286286
}
287287

288-
err_port:
289-
list_for_each_entry_safe(port, tmp, &s32g_pp->ports, list)
290-
list_del(&port->list);
288+
if (ret)
289+
list_for_each_entry_safe(port, tmp, &s32g_pp->ports, list)
290+
list_del(&port->list);
291291

292292
return ret;
293293
}

0 commit comments

Comments
 (0)