From: Denis Efremov <efremov@linux.com> To: Bjorn Helgaas <bhelgaas@google.com> Cc: Denis Efremov <efremov@linux.com>, Matt Porter <mporter@kernel.crashing.org>, Alexandre Bounine <alex.bou9@gmail.com>, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] rapidio/tsi721: Loop using PCI_STD_NUM_BARS Date: Fri, 16 Aug 2019 12:24:33 +0300 Message-ID: <20190816092437.31846-7-efremov@linux.com> (raw) In-Reply-To: <20190816092437.31846-1-efremov@linux.com> Refactor loops to use 'i < PCI_STD_NUM_BARS' instead of 'i <= PCI_STD_RESOURCE_END'. Signed-off-by: Denis Efremov <efremov@linux.com> --- drivers/rapidio/devices/tsi721.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c index 125a173bed45..4dd31dd9feea 100644 --- a/drivers/rapidio/devices/tsi721.c +++ b/drivers/rapidio/devices/tsi721.c @@ -2755,7 +2755,7 @@ static int tsi721_probe(struct pci_dev *pdev, { int i; - for (i = 0; i <= PCI_STD_RESOURCE_END; i++) { + for (i = 0; i < PCI_STD_NUM_BARS; i++) { tsi_debug(INIT, &pdev->dev, "res%d %pR", i, &pdev->resource[i]); } -- 2.21.0
next prev parent reply index Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-08-16 9:24 [PATCH v2 00/10] Add definition for the number of standard PCI BARs Denis Efremov 2019-08-16 9:24 ` [PATCH v2 01/10] PCI: Add define " Denis Efremov 2019-08-16 9:24 ` [PATCH v2 02/10] s390/pci: Loop using PCI_STD_NUM_BARS Denis Efremov 2019-08-16 10:45 ` Sebastian Ott 2019-08-16 9:24 ` [PATCH v2 03/10] x86/PCI: " Denis Efremov 2019-08-16 9:32 ` Thomas Gleixner 2019-08-16 13:31 ` Bjorn Helgaas 2019-08-16 9:24 ` [PATCH v2 04/10] stmmac: pci: " Denis Efremov 2019-08-16 9:24 ` [PATCH v2 05/10] net: dwc-xlgmac: " Denis Efremov 2019-08-16 9:24 ` Denis Efremov [this message] 2019-08-16 9:24 ` [PATCH v2 07/10] efifb: " Denis Efremov 2019-08-16 9:24 ` [PATCH v2 08/10] vfio_pci: " Denis Efremov 2019-08-16 16:23 ` Alex Williamson 2019-08-16 9:24 ` [PATCH v2 09/10] PCI: hv: Use PCI_STD_NUM_BARS Denis Efremov 2019-08-16 9:24 ` [PATCH v2 10/10] PCI: " Denis Efremov 2019-08-16 10:51 ` [PATCH v2 00/10] Add definition for the number of standard PCI BARs Andrew Murray 2019-08-16 13:35 ` Bjorn Helgaas 2019-09-05 19:02 ` Denis Efremov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190816092437.31846-7-efremov@linux.com \ --to=efremov@linux.com \ --cc=alex.bou9@gmail.com \ --cc=bhelgaas@google.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pci@vger.kernel.org \ --cc=mporter@kernel.crashing.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux-PCI Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-pci/0 linux-pci/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-pci linux-pci/ https://lore.kernel.org/linux-pci \ linux-pci@vger.kernel.org public-inbox-index linux-pci Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-pci AGPL code for this site: git clone https://public-inbox.org/public-inbox.git