x86: pcie: Fix array index for bus_segs

This seems like a typo since all other places accessing bus_segs in
this context use i as the index.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2020-10-24 00:12:12 +03:00 committed by Anas Nashif
commit 1c23a19c36

View file

@ -70,7 +70,7 @@ static inline void pcie_mm_conf(pcie_bdf_t bdf, unsigned int reg,
PCIE_BDF_TO_FUNC(bdf));
volatile uint32_t *regs
= (void *)&bus_segs[0].mmio[bdf << 4];
= (void *)&bus_segs[i].mmio[bdf << 4];
if (write) {
regs[reg] = *data;