PCI: qcom-ep: Make use of the cached dev pointer
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 14 Sep 2022 07:53:41 +0000 (13:23 +0530)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Mon, 3 Oct 2022 08:38:16 +0000 (10:38 +0200)
commit9cf4843e1acf08ab5c523bc4fa8f7b24de2bea3a
treef0677938b2434f2321e2494d26fe3a1bc403389e
parente2efd31465b1d97a0bca6f93cb75ccdc8001c8d3
PCI: qcom-ep: Make use of the cached dev pointer

In the qcom_pcie_ep_get_resources() function, dev pointer is already
cached in a local variable. So let's make use of it instead of getting
the dev pointer again from pdev struct.

Link: https://lore.kernel.org/r/20220914075350.7992-4-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
drivers/pci/controller/dwc/pcie-qcom-ep.c