]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Reuse local pointer to the resource data
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 24 Jun 2022 14:34:22 +0000 (17:34 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Jul 2022 00:00:52 +0000 (19:00 -0500)
commit77fd58ba24474016aaf2bd7540cb9d6cb951da49
treeaa02a1ef3782e81ca0d6de9b8360c7c191aef43d
parentd7c71d98ab0daa2103385de2399b7304d713fa89
PCI: dwc: Reuse local pointer to the resource data

dw_pcie_host_init() has two instances of the resource structure pointers
used in unrelated places. It's pointless to have two different local
storages for them since the corresponding code is small and having
resource-specific names doesn't make it more readable.

Convert these parts of the function to use a common pointer to the
resource structure instance.

Link: https://lore.kernel.org/r/20220624143428.8334-13-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware-host.c