x86/PCI: MMCONFIG: simplify tests for empty pci_mmcfg_config table
commit463a5df175e3ceed684397ee2f8a3eb523d835a0
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Sat, 14 Nov 2009 00:33:58 +0000 (13 17:33 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Nov 2009 23:28:56 +0000 (24 15:28 -0800)
tree014a58e87375f36c58fa4ffbc739e85672e534b0
parent7da7d360ae025158d09aab18d66f5d2fe3c02252
x86/PCI: MMCONFIG: simplify tests for empty pci_mmcfg_config table

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>
arch/x86/pci/mmconfig-shared.c