From patchwork Fri Jan 24 09:28:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233234 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E5A8C35242 for ; Fri, 24 Jan 2020 09:49:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5655720718 for ; Fri, 24 Jan 2020 09:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859343; bh=52tSDax7XG1hpvNIQYbBrqYzpYU5D45cDrSKdOefidI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EGoVOLskG3YnrbHXzmdMHB4yyEFf6m5v2jJ7pYhobPGhVS6VuXCqWYSmf5bblmJjW QSchqjpW8Lo3gj7QdbeH/84cYfmgYtx1PWubFnR1NIZHkk3hI2tQpEuGHYZluR9xNN OHoEl6WMl/XSU3Cs9+wzRLo5CM1QD1r2hCvksdGk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387576AbgAXJtC (ORCPT ); Fri, 24 Jan 2020 04:49:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:49264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729742AbgAXJtC (ORCPT ); Fri, 24 Jan 2020 04:49:02 -0500 Received: from localhost (unknown [145.15.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF675206D5; Fri, 24 Jan 2020 09:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859341; bh=52tSDax7XG1hpvNIQYbBrqYzpYU5D45cDrSKdOefidI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HLJmseOSZJsEbbxRj1aC9oxNb7+dPDPeV/5hbrcRO3xHkBw3c7tJ9kg+ubs2rfv09 HfDeVZkSzFKKlm2cUoWqi5teSr7GitDIahJMJQOQ1xg0As0r2gXfFLkh1XTqpufX0R iXNE4hF/mLAWtXZUm/i+3b2A+9P7ng46uG1rpYZY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Michael Ellerman , Daniel Vetter , Christophe Leroy , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.14 096/343] fbdev: chipsfb: remove set but not used variable size Date: Fri, 24 Jan 2020 10:28:34 +0100 Message-Id: <20200124092932.691418734@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124092919.490687572@linuxfoundation.org> References: <20200124092919.490687572@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: YueHaibing [ Upstream commit 8e71fa5e4d86bedfd26df85381d65d6b4c860020 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/chipsfb.c: In function 'chipsfb_pci_init': drivers/video/fbdev/chipsfb.c:352:22: warning: variable 'size' set but not used [-Wunused-but-set-variable] Fixes: 8c8709334cec ("[PATCH] ppc32: Remove CONFIG_PMAC_PBOOK"). Signed-off-by: YueHaibing Acked-by: Michael Ellerman Cc: Daniel Vetter Cc: Christophe Leroy [b.zolnierkie: minor commit summary and description fixups] Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin --- drivers/video/fbdev/chipsfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c index f103665cad431..f9b366d175875 100644 --- a/drivers/video/fbdev/chipsfb.c +++ b/drivers/video/fbdev/chipsfb.c @@ -350,7 +350,7 @@ static void init_chips(struct fb_info *p, unsigned long addr) static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) { struct fb_info *p; - unsigned long addr, size; + unsigned long addr; unsigned short cmd; int rc = -ENODEV; @@ -362,7 +362,6 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) goto err_disable; addr = pci_resource_start(dp, 0); - size = pci_resource_len(dp, 0); if (addr == 0) goto err_disable;