pci: pci_ipq: initialize the index variable to zero

Change-Id: I0d3582343b7b5dda86548f0dd46dd6e801e820b3
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
This commit is contained in:
Kathiravan T 2023-03-09 21:33:10 +05:30
parent 2a18527a0f
commit 43442bec19

View file

@ -1988,7 +1988,7 @@ pci_dev_t pci_find_ipq_devices(struct pci_device_id *ids, int device_id)
{
struct pci_controller * hose;
pci_dev_t bdf;
int bus, index;
int bus, index = 0;
hose = pci_get_hose_head();