Messages in this thread | | | Date | Mon, 13 Jun 2022 14:28:32 -0600 | From | Rob Herring <> | Subject | Re: [PATCH v4 12/18] PCI: dwc: Re-use local pointer to the resource data |
| |
On Fri, Jun 10, 2022 at 11:25:28AM +0300, Serge Semin wrote: > The dw_pcie_host_init() method has two instances of the resource structure > pointers used in non-related places of the method. 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. > Let's convert these parts of the function to using just a common pointer > to the resource structure instance. That shall make the code a bit nicer > looking. > > Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru> > > --- > > Changelog v4: > - This is a new patch created on the v4 lap of the series. > --- > .../pci/controller/dwc/pcie-designware-host.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-)
Reviewed-by: Rob Herring <robh@kernel.org>
| |