From: Jon Mason Date: Tue, 10 Jul 2012 21:57:56 +0000 (-0700) Subject: [SCSI] qla2xxx: remove unnecessary reads of PCI_CAP_ID_EXP X-Git-Tag: v3.6-rc1~103^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67f13212a2b48a19b7c8433df40439177963a57;p=pandora-kernel.git [SCSI] qla2xxx: remove unnecessary reads 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, pci_is_pcie is a better way of determining if the device is PCIE or not (as it uses the same saved PCIE capability offset). Signed-off-by: Jon Mason Acked-by: Chad Dupuis Signed-off-by: James Bottomley --- Reading git-diff-tree failed