]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] lpfc: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Wed, 11 Sep 2013 22:38:13 +0000 (15:38 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:57:55 +0000 (09:57 +0100)
commita6d04553009e16d6cb49845f39b67f3768922d0c
tree989e86904da79af70974d8c9dab1c6cbf577e447
parentfa8fc8b08a10d3e14ed4a77184b8d6879ceafcb6
[SCSI] lpfc: 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, 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 <jdmason@kudzu.us>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_init.c