lkml.org 
[lkml]   [2022]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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>

    \
     
     \ /
      Last update: 2022-06-13 23:00    [W:4.156 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site