Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp871102iog; Mon, 13 Jun 2022 15:00:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sd3nQGdaCJELwlJAcfXsnEnrzalqD1B/xkIw8Sd32lilofYsDeBAeGtybwiEYOhR+V+Sx5 X-Received: by 2002:a17:90b:3ec3:b0:1e8:844f:6d43 with SMTP id rm3-20020a17090b3ec300b001e8844f6d43mr900820pjb.112.1655157636376; Mon, 13 Jun 2022 15:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655157636; cv=none; d=google.com; s=arc-20160816; b=mcQhed44kOvNfQEI1Qp1I4GuJzIKF696SiqJNYGkTMiLIFhKMFyzS/Et86ma3FKQWy On5zIZ/keIyuK4No8yZ7vPgGuHZW1iooIWhKI0WYUAKES5KVnYFY2z4RvHHQfo+GezzE Ueg3TDe1vyeppt9IkCcrAhcYlgGULf1w13udvZXwXUVKdmpsbI1WNJDnkQ5ZxNGsQPDi 8LJRPk5O73dpcI9qPo2pkAGTNjU2/ai52fFTyc1+TFdRSFFT9lpTAYE+3O0kDb2RCLBL PXdsYi2yC45xNPImDS/aqWzhiufyJGuQdIT6u0TkUXZh6smuDT1fFHXVS01Y/V/Vzg4x kP3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=g+MycQEHVLS0G3Jp47J4dPsMXopl+aBAELiT0jx3BxM=; b=BjqO9/ExNWzCXSZVor+fQ3zlMDQ2kKx2Qw6Z1xY9yNU6nkd4bxCxAlRRt7yyuuTDdH Vpcb1Hu8ugJWSOY4AdeUMc4qUgQRDzoSE/WmcaEazOMTozkkscaYEaGJhFpSDlKkKzx8 k1x+0Bdehwk1w/eXYUpMggu2I8U3U1VfZOBB1SB2NdhYvknwoU8ODA31NVr6Fpqw4kR6 7BT45ZD9D+DdDUHFAJfqGPswtd2cQYQKkf7VnJeuSiq1uwGAqZl8daAbWk3CGHqLA9ix KNKFEqsFZGn2R0jMierDGJsmdmf6STrL9YroKCbSVzVCzVN18oO0lcqUGUb8LJiREOt4 bBnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a63eb54000000b003f667dd5faasi10920008pgk.82.2022.06.13.15.00.23; Mon, 13 Jun 2022 15:00:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351257AbiFMU7u (ORCPT + 99 others); Mon, 13 Jun 2022 16:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349028AbiFMUzs (ORCPT ); Mon, 13 Jun 2022 16:55:48 -0400 Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85892BA; Mon, 13 Jun 2022 13:28:37 -0700 (PDT) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-fe51318ccfso10002325fac.0; Mon, 13 Jun 2022 13:28:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=g+MycQEHVLS0G3Jp47J4dPsMXopl+aBAELiT0jx3BxM=; b=y4wc3MZS3lXg4/ZTsle84DEZOq5pRu+BI/FI7ahMbz6Sg3g7HYzL++6qGONkPSMSCh owhNYRs0vyTy5k/a9+ZR9+cOc6ECZ/kAaIF6j38VcpKED+Tc3cvqZJhjiM+OxcrFuALQ XA1NQgPvW32RsbN1vqFdOJdTSvL7cEhRB3tADgGFtJQ9XQJatrNj3burFJkAakg1+myt tBFJHVnEHBA8+n/SOPI8Ypy6i+WKavlAK9+OSiKZiaeHQWLEoa6IKLVhNWlww+jHzVLG 0ne+K01JWAfn50NQInye8pk5/x/J2CrW+nkuLTMKQx2wvTOzQ11r+jrY/dM4uc56yT3o fOIg== X-Gm-Message-State: AJIora/19chDhdinKyTNz8ble6vE1FaAWx8DSivdMb27dgzkvzWNFxQt IjMkvf7FrGQ4B1jamUmdvg== X-Received: by 2002:a05:6870:46a6:b0:f5:ecd6:befb with SMTP id a38-20020a05687046a600b000f5ecd6befbmr331021oap.57.1655152116990; Mon, 13 Jun 2022 13:28:36 -0700 (PDT) Received: from robh.at.kernel.org ([2607:fb90:20d2:bb97:4381:7341:60ed:a4a1]) by smtp.gmail.com with ESMTPSA id f8-20020a4ada48000000b0035eb4e5a6d6sm4057166oou.44.2022.06.13.13.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 13:28:36 -0700 (PDT) Received: (nullmailer pid 30275 invoked by uid 1000); Mon, 13 Jun 2022 20:28:32 -0000 Date: Mon, 13 Jun 2022 14:28:32 -0600 From: Rob Herring To: Serge Semin Cc: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Frank Li , Manivannan Sadhasivam , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 12/18] PCI: dwc: Re-use local pointer to the resource data Message-ID: <20220613202832.GA28636-robh@kernel.org> References: <20220610082535.12802-1-Sergey.Semin@baikalelectronics.ru> <20220610082535.12802-13-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610082535.12802-13-Sergey.Semin@baikalelectronics.ru> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > --- > > 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