We never set pci_mmcfg_config unless we increment pci_mmcfg_config_num,
so there's no need to test both pci_mmcfg_config_num and pci_mmcfg_config.
Reviewed-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
int i;
if ((pci_mmcfg_config_num == 0) ||
- (pci_mmcfg_config == NULL) ||
(pci_mmcfg_config[0].address == 0))
return;
pci_mmcfg_reject_broken(early);
if ((pci_mmcfg_config_num == 0) ||
- (pci_mmcfg_config == NULL) ||
(pci_mmcfg_config[0].address == 0))
return;
if ((pci_mmcfg_resources_inserted == 1) ||
(pci_probe & PCI_PROBE_MMCONF) == 0 ||
(pci_mmcfg_config_num == 0) ||
- (pci_mmcfg_config == NULL) ||
(pci_mmcfg_config[0].address == 0))
return 1;