Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2756413ybl; Sun, 11 Aug 2019 08:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+vZeFgYKZd2MRyyxX8slSahmK3Q27SGGJEVFLzuQbz4rVkLGGYE8pqM4JlKN+iIu7baTA X-Received: by 2002:a63:194f:: with SMTP id 15mr26984279pgz.382.1565536333858; Sun, 11 Aug 2019 08:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565536333; cv=none; d=google.com; s=arc-20160816; b=R9WucaICEj7EGeKNjucad3lMt+Mv5LWK8ZorbCpuabmwZDdobYylu22nmxOe4eYuaV TBI5sAu2vPHWYJsCZDJw6yJh3v6lWZAPeb+JnTJ/OryBeA5+nup8LT7HVgyyduFv+do4 1Cpaa2Z8kkki3EQdls/GsjX/hv+r0G1L8Ty5k1cL6TPpBu1brBaspn0QC71L2YwGIRyt mKBERyjsqTPEscs4v5O0A1gYrE0cB0RkjReP4lUU2bVW0LuBaFjF97HTA9tpoVePeBzt sVhuAxGR5XELGz6oWNplatunRwVYSca3L4AUzSZ+zDSSf1uwuICxhNOyXkyxux05gBB3 iVhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=G2Y0IzyQvN3L+ryh+30m+GJo2QD0YzGvKKX16dAP924=; b=dzWn01xYzTOd7fC0M6Q6iHQCOGSwqoBmyEvAMcxLdeNMk++LwtUmCPEJwGHYXgDKAS wR7SNHn5qLsTJ4u3vKLNdsH7osJ5o1gBx/P+x8hEPeapcWv4VAGyEHLqPgFhFPXiH37l P7fhFrgEC9Btedf1bsclAUbil6RET/pgHfVEoO1NrKcopy3d7zjCPKkXvtWQwwqJdky6 1m/1fN7J1AM0p5CB5FEdWLqaLpRuckGoos50KYq1PsAq+R0IAbaSNLgMgBLUMwclWv4c CnXH05QIEoF/TvotcMkpS/u5uq9q6R8nFJDzqp5cNLl+gOki2pnJO8EEpaZYx1WP1YfL NxTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si57582677pge.44.2019.08.11.08.11.58; Sun, 11 Aug 2019 08:12:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbfHKPKL (ORCPT + 99 others); Sun, 11 Aug 2019 11:10:11 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36956 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726231AbfHKPKK (ORCPT ); Sun, 11 Aug 2019 11:10:10 -0400 Received: by mail-wr1-f67.google.com with SMTP id z11so548516wrt.4; Sun, 11 Aug 2019 08:10:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G2Y0IzyQvN3L+ryh+30m+GJo2QD0YzGvKKX16dAP924=; b=QXkkY5MdsJvsohfboQ5kWIBIKMbiQuiSoQQ0+Io4NJRUXtKLLuMzlfDGBSzjcSWRkq fHzI3xjZX4I3afoyhMS7lDlX8Bvccor27juwc7tIXa/Sx7+1K6u812J7i7Gbcm9EEHUY JljlrHV14SnV5g75lEwEbYfp+rPlCCgs3XL15iNBxqS+M0vATQtiZ3+0DWuwD5pY1wiG GWhJ6qHpfbfKo/IBIWnYNnznO2bQOBLJ99ei1krPs1acNNADMjLF6k9EXxPLUtIyACZu ErI5ZVEyfs6kXf4uGfdronAOstb2GKMKchjW6f3iY9LEbn4eXKsI7tTCVVUGnQbMgZXe 4Hcg== X-Gm-Message-State: APjAAAWy91PySrVk2t8jN9kpW6lxfYIwRBrHCQUuPpH2856wDoe+NBeF Js6vT5S1T3Do+54HozHVYVo= X-Received: by 2002:adf:f186:: with SMTP id h6mr35004721wro.274.1565536208696; Sun, 11 Aug 2019 08:10:08 -0700 (PDT) Received: from localhost.localdomain (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.googlemail.com with ESMTPSA id y16sm227049408wrg.85.2019.08.11.08.10.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Aug 2019 08:10:08 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , Matt Porter , Alexandre Bounine , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] rapidio/tsi721: use PCI_STD_NUM_BARS in loops instead of PCI_STD_RESOURCE_END Date: Sun, 11 Aug 2019 18:08:01 +0300 Message-Id: <20190811150802.2418-6-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190811150802.2418-1-efremov@linux.com> References: <20190811150802.2418-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch refactors the loop condition scheme from 'i <= PCI_STD_RESOURCE_END' to 'i < PCI_STD_NUM_BARS'. Signed-off-by: Denis Efremov --- 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