]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86/PCI: MMCONFIG: count MCFG structures with local variable
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Sat, 14 Nov 2009 00:33:42 +0000 (17:33 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Nov 2009 23:28:37 +0000 (15:28 -0800)
commite823d6ff581c5d1d76aa8c73a202d7d1419d34b8
treef18438693bc2a1871805f9cb7ae46e363184d605
parent5663b1b963183e98ece3e77e471da833bb5ad2ff
x86/PCI: MMCONFIG: count MCFG structures with local variable

Use a local variable, not pci_mmcfg_config_num, to count MCFG entries.
No functional change, but simplifies future changes.

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