Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp693468ybl; Fri, 16 Aug 2019 02:27:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzprzOuEF0zDhv5QNJd01rGpyLnzXhqSxK4ufvlV4UKUjPslV/iE6Er1nriEPsBPZNynnhZ X-Received: by 2002:a63:381d:: with SMTP id f29mr7139532pga.101.1565947646221; Fri, 16 Aug 2019 02:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565947646; cv=none; d=google.com; s=arc-20160816; b=YOKg0tjUJvYvPRboKNUU5Iee+MXYndT8nDU9bmNBhngvUNhn6M43VB73vuO6C2y9Ji Oii6CKovJL0SJqsKskv0HiShT1oipgpZRoQoTdXixfmtVu6cWgpDRXlBJPKbyntFySPm upYN0mRoIaqaDZXMRr16VStW2231FswiPEIsAdCti1lQym8+o6lclZzif9QL4tNhS83k 5z8YJuNpW8IqU/MwnLoIIiBZ03RU4kUjZvURL+5CRTmHJNj15trDMhSk1oJWc4T+l2g/ d0st2DfK1Hhu/4Dodwl1Mru9qF2g2vdkcFrmgzS1gEgvs5U0TP2kEU/CR632wIphwtmS ppfA== 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=IolRIeTGcRrWhMPHSs5hGUeW7sCKN9H4QrJAPD2CaXs=; b=HR47tjqg5A2CrDu2b0UJIKAqBBKzLsq3DDRUn60yONmqqPgjaKG+Z0FEhd9kUtUwQ1 Wvgnip1gJY/jgyYlc3s3JhnSuch1/f9ftDFuWic+vgPGdpE+Sqf4K73NA25hEIGMvhc6 dM+IpLHF7LC2L+YBDmonLTkVVdwdXFhn+SQjZzapskPHMvY6GXM3xs14u4C/YO9/Jnx4 gNSKhy49sAZNetgHMjqE9Wwziep0+jPK/fu1vSl05H1iWKBeFsrH+Ij6l/La5YOZqcT0 rMXIQq8DlXyRBucPPphamYy8IHrtA1oF2FIDCEqOYZcRp6y6z/XZsppGaGX8Biyl0z8V KWmg== 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 r185si3443798pgr.506.2019.08.16.02.27.08; Fri, 16 Aug 2019 02:27:26 -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 S1727218AbfHPJ0X (ORCPT + 99 others); Fri, 16 Aug 2019 05:26:23 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34693 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbfHPJ0W (ORCPT ); Fri, 16 Aug 2019 05:26:22 -0400 Received: by mail-wm1-f65.google.com with SMTP id e8so2774286wme.1; Fri, 16 Aug 2019 02:26:20 -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=IolRIeTGcRrWhMPHSs5hGUeW7sCKN9H4QrJAPD2CaXs=; b=UZxYYnvhNYop13mkLpDgj8Sn+co0KbQBZ7ycyn7IbmZ41BI7cI6V2AdDwwOP5DSrX9 914lBGPWYiadgpVcpXjA+YWgkIRClT857OUad8PW6Pj0W/EqEkfGatp/XqTZ+tZEJ5bN 4eX8gZkSehkC2gMRm8B+kU4VMsoV+cijOV+nQLU3IZzSK5JVIQG2guTVuk2L645vamaM YNLSvIq528kaLRdchaNNhb/wodgYPtaMzMXIMdRQksWVFqAIiQsyZjz2gulmXmZdpIPQ J46DhMWqnb5FVcpIjcf3iDx0w6i4cXGKmSfbzL4bonjllwvzibkuVETPXd2Qj042vsW2 6gvg== X-Gm-Message-State: APjAAAVGD73kCMs9zOBTgTidZtHJeW0qYnPQLkpyDhzMPftbt8rOnIhh qZap2Nn+UCezDTBHBjUwtgM= X-Received: by 2002:a05:600c:2056:: with SMTP id p22mr6179932wmg.155.1565947580049; Fri, 16 Aug 2019 02:26:20 -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.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 02:26:19 -0700 (PDT) From: Denis Efremov To: Bjorn Helgaas Cc: Denis Efremov , Peter Jones , Bartlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/10] efifb: Loop using PCI_STD_NUM_BARS Date: Fri, 16 Aug 2019 12:24:34 +0300 Message-Id: <20190816092437.31846-8-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'. Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Denis Efremov --- drivers/video/fbdev/efifb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c index 04a22663b4fb..6c72b825e92a 100644 --- a/drivers/video/fbdev/efifb.c +++ b/drivers/video/fbdev/efifb.c @@ -668,7 +668,7 @@ static void efifb_fixup_resources(struct pci_dev *dev) if (!base) return; - for (i = 0; i <= PCI_STD_RESOURCE_END; i++) { + for (i = 0; i < PCI_STD_NUM_BARS; i++) { struct resource *res = &dev->resource[i]; if (!(res->flags & IORESOURCE_MEM)) -- 2.21.0