]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 17:50:14 +0000 (12:50 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jun 2011 19:10:59 +0000 (15:10 -0400)
commit691b3a78c1955ce4feee49e04b5816f3fcbccd2e
tree121e11bbaf89ecc06c44cc34f1f681a828e97ff1
parentfc12c285d38e60b6e8eb36ab1f9a1bcb2035377a
rtlwifi: 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.

Also, remove unnecessary and unused #defines for PCI.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/pci.h