Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp694548ybl; Fri, 16 Aug 2019 02:28:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFMOxImhvLIFxJJGbr+CUo1JKeYFbWfcymcjfLPpeDFOJuXb3F7xYlO1TRfyi5aTLCPIYU X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr6470503pjq.73.1565947725295; Fri, 16 Aug 2019 02:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565947725; cv=none; d=google.com; s=arc-20160816; b=SnDIOfxiSK30mrXfYHHWV7G9C654ZPH0L5EkGyIb8bysGqrWTXFg4MjcIA0AJeGg3Y nVvdO4RLF5rMWx2GJwyspL8p+w0OoCbGzeWZCNk8+Oit8nVqU8RQxTS2XpYYbupmoykO raDmB7g0i6uy1aUYq/NygYYI7z99qS95fDR8b2dbV3+X6Uo7AyxwrBO0MfPjT4zd9xMp dGonmPy64TStw1Tu125DKmeCrA05EOVktQutHeDdX5nFbo7WEMOBtNPywDkny1VM5Ya9 iHiaBkX0FvwtAocdEWD65URR0l2xKY87OrqN1NEnRDFqyVhXjyYFr+8XWsVSzZXnPbiq 4NEQ== 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=XIWx6CaxG/uLJ4bEXyuLwT1G87Dm8YPWSJ3PPeconzU=; b=JXfSasrmQDguoJ3ovFIl55ztZR1RuQBco/Ahrdu3qgZIgw82gDqk6gquVjq+BsrBBT vWEkdJFnwGhyXHKbgAdcjfgWvsIbaqMXp7PIYQt7aBc3lZc4mH2RDYUEEQF4wlAELISQ bKweId2VX3HTCHqixOU4b0egAJrfKZXlahoRgxvEPsdOkc7qn1DEhw7reuCkc1Bt66/L 3MvRFX0I36GV2GuSuc8U+0x5EkIcfCAwzvjyuiOcqP2zlgLLGmoMfaD8yqcDt3iXQ6cV qIqT5u1MUOaoLmwFrwKYRsKy+R70FegVT5gi3X5bZ+DTEGHQcFSNiB1ewZq2f7sjlKAK ed2w== 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 l1si3511297pgt.137.2019.08.16.02.28.27; Fri, 16 Aug 2019 02:28:45 -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 S1727198AbfHPJ0V (ORCPT + 99 others); Fri, 16 Aug 2019 05:26:21 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33391 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbfHPJ0U (ORCPT ); Fri, 16 Aug 2019 05:26:20 -0400 Received: by mail-wr1-f67.google.com with SMTP id u16so915314wrr.0; Fri, 16 Aug 2019 02:26:18 -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=XIWx6CaxG/uLJ4bEXyuLwT1G87Dm8YPWSJ3PPeconzU=; b=DQTb2WbWyYu0KnLdqnJVnUTauIbErgLoXBHTLCft0DwoBRcfOWKKyLgZiktN/CLsSb dz0Q7MX3u3ZtTtx7nW6iQnIFQI5G64evWA0Fg2XiIFNAu0pDQUAldC3DEZnunJB4LWX1 LE5riguqfIN5xuMACfpVNp78ma/fcqw9TXG3oacvd9kJKnW4syLcZ4ONtbIwvvJXfchK hBbFA/uWtskZDVGIxPhpZXG1fYyd0LGtIHPZnDk/k8EwyU7gQFNH+TseB3KEMuVZyL3v MaYy6+WZm51zEeplyiAH5Ifp+a0ohbcghSqnaRXS/SjrIAJqXF1HshzvUuOl5W4gLUDO uL0w== X-Gm-Message-State: APjAAAWnn19fT7HPGsQvxQBHkZXlXvQN3C8AXQDwatA6OiB4tdIak42d nfUfgAccI/+wUa8N0B/bozwtx1j/wU4= X-Received: by 2002:a5d:404d:: with SMTP id w13mr9588210wrp.253.1565947578220; Fri, 16 Aug 2019 02:26:18 -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 q20sm16521138wrc.79.2019.08.16.02.26.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 02:26:17 -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 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> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190816092437.31846-1-efremov@linux.com> References: <20190816092437.31846-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 Refactor loops to use 'i < PCI_STD_NUM_BARS' instead of 'i <= PCI_STD_RESOURCE_END'. 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