No functional change, but simplifies a future patch to convert the table
to a list.
Reviewed-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
kfree(pci_mmcfg_config);
}
pci_mmcfg_config = new;
-
pci_mmcfg_config_num++;
- pci_mmcfg_config[i].address = addr;
- pci_mmcfg_config[i].segment = segment;
- pci_mmcfg_config[i].start_bus = start;
- pci_mmcfg_config[i].end_bus = end;
+
+ new = &pci_mmcfg_config[i];
+
+ new->address = addr;
+ new->segment = segment;
+ new->start_bus = start;
+ new->end_bus = end;
return &pci_mmcfg_config[i];
}