iwlwifi: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Thu, 30 Jun 2011 15:42:47 +0000 (10:42 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Jul 2011 19:05:41 +0000 (15:05 -0400)
commit68dd49ef907f92127aabb30b3368b80eb0ffb459
tree94517dca5fed65a13e951063c8d9e4cc605d1d3c
parent333c0dbfcd7847d02d75a2d2a80d2f5e1cdc51dc
iwlwifi: remove unnecessary read of PCI_CAP_ID_EXP

The PCIE capability offset is saved during PCI bus walking.  It will
remove an unnecessary search in the PCI configuration space if this
value is referenced instead of reacquiring it.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-pci.c