From patchwork Wed Jan 13 14:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362126 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598154jap; Wed, 13 Jan 2021 06:50:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0/36EOJACX5JAFsFF0bndLCZ69Ttlh9Frt6jc5XxbClgYm7EEriM5eTtb0Wy9sn57grcP X-Received: by 2002:a17:90a:7c08:: with SMTP id v8mr2737080pjf.135.1610549448487; Wed, 13 Jan 2021 06:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549448; cv=none; d=google.com; s=arc-20160816; b=vtvFjs6K8zduUOkbNTByKmkDF6ohQazicaflH+L+Q1KYefNyknYER5l03waskVUf8T TaJfScrIcxfAAk/Mj45r2DyMJW67lEM/RV0dwYMwJIpcjgXkRwc2hXb2W9i1419mozb9 1QcBQcr7wg5IQNansqAKGkLNPT/542we0SvgECOWkNXXyZTMclWtPABNBU02sJ1hQjxj 0szhd1ZJjg8a5JyTWkk27N6Ht7WxWlKTO20+Xi81MLjX2rSNw9bdX7gnwbveVc2/bI0R OVlNcz4q66/E4k+qz0o3g0M66vJNSPWeT1y4a113qfZS+AExMDNRf8Sh9L6Cwk0eVqU7 aaAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=PgdRpz+blTrF5JGu5CSF0hzjqN+iFj2R8yrDTnJ5oDI=; b=M6yG42uzVrcbfW6zAlQW/tUmokeh4K5Hxv/wTfAksMeJwOz/GiIXgGuZu2QlwsqWmB jX42IB6Dm7uCFvKzQ0j+ip9DPuJ3dp2vnn6ZV5jla2V/RHD4Oaf8NiWHrXCv9ctThqiO 10PE9PwGaKRG+R1ZLRBwYwgFDJ3oq4RI4PVG1Oq63ysMZ8ist190come0RZvgpHwnEeR Igl4/OuB0r/JKvUu5fnpWLvUu3bNTsDEQ9cBSSkcaMuKuPyBxdNKVqaM9P535nFoc6RJ C13YrL9LrsYDmfFXsa2Km/HVUc2f5I+W0LXjArEvJJlmMKXjTKii/5LtfREPnLEczl2m H00A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="qCaU5/Pw"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id fy5si2641698pjb.16.2021.01.13.06.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="qCaU5/Pw"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30B356EA5E; Wed, 13 Jan 2021 14:50:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC3DF6EA5C for ; Wed, 13 Jan 2021 14:50:38 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id g10so1855460wmh.2 for ; Wed, 13 Jan 2021 06:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GZEx6Psm5kmVFzQRuV4hKShFUTuX59E1ZZSqS64lTO4=; b=qCaU5/PwjTYjtfnriB60Z9oLOr+vFl/C6eE9S2SqWRzje404GBkmpQhafug/AkVxOy cQQpoF2TPpvHLZ2G0WwI0m9I3+iSy5mECHxCRPxdVQEqbEaiQAKEQ21H2Puw7RerAiVE wFP15HZbbxQs2PH85CQiCco+76nv2mFTwq9YLxfrDpX1dbHfhcDj5xFdWbHJisbQiGp9 gXFKfd2QUbQryXwNq3Wq2jJyOgsjiru7oncOJDfA+X11+HkluVlV1zwafJGTb/u8E2G8 MRaYmLZI/XB7G9OUxyfbsMCiS30QwhZAVeTDBJWC+SfdIRLhSlZ+MEl7DCFddFc+gJo3 s87Q== 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=GZEx6Psm5kmVFzQRuV4hKShFUTuX59E1ZZSqS64lTO4=; b=IW+hwG++pXNdYwyAUaVE3IrwZ50KwIH48sDyRcOsNLp4/YcqRsJDSVhFupV8pJ255+ 17YfUHEuqYb+C8nOv9bJbyUNi0CjlfLzLeXPgN9v88/OjQBnWPJBHwJRo4sml07A/zHI Xe4ShWjuyhOODNcz87reOFcLGGQye3yIcT3pfNK92UsudYm3v4lqYm7OiMfgGfG3q1Xd lDH4RU7P5Q9xKxnd0efx60dX4uipgJ4c07uLfejySooNJI4YpBV1kJdI5MMYQMKD+Hym +GbnHuBLrxAcTWCq+2+ZvycpIcE3RdaKH9RR5v74TfHAkLj/GHyN25XTko94/mD1hgSr U9Fg== X-Gm-Message-State: AOAM533o2vhAHfFq9sxJwyzREm/ky8VyxxgyzXDTBxlitUGxHIa+Spn6 kxvX7iW+w8QbWef/x+RMLrZVILzzmEzSIFe7 X-Received: by 2002:a1c:40d6:: with SMTP id n205mr2609520wma.0.1610549437515; Wed, 13 Jan 2021 06:50:37 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:36 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/31] video: fbdev: via: lcd: Remove unused variable 'mode_crt_table' Date: Wed, 13 Jan 2021 14:49:53 +0000 Message-Id: <20210113145009.1272040-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Florian Tobias Schandinat Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/via/lcd.c: In function ‘viafb_lcd_set_mode’: drivers/video/fbdev/via/lcd.c:540:29: warning: variable ‘mode_crt_table’ set but not used [-Wunused-but-set-variable] Cc: Florian Tobias Schandinat Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/video/fbdev/via/lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/via/lcd.c b/drivers/video/fbdev/via/lcd.c index 4a869402d120d..088b962076b51 100644 --- a/drivers/video/fbdev/via/lcd.c +++ b/drivers/video/fbdev/via/lcd.c @@ -537,11 +537,9 @@ void viafb_lcd_set_mode(const struct fb_var_screeninfo *var, u16 cxres, u32 clock; struct via_display_timing timing; struct fb_var_screeninfo panel_var; - const struct fb_videomode *mode_crt_table, *panel_crt_table; + const struct fb_videomode *panel_crt_table; DEBUG_MSG(KERN_INFO "viafb_lcd_set_mode!!\n"); - /* Get mode table */ - mode_crt_table = viafb_get_best_mode(set_hres, set_vres, 60); /* Get panel table Pointer */ panel_crt_table = viafb_get_best_mode(panel_hres, panel_vres, 60); viafb_fill_var_timing_info(&panel_var, panel_crt_table);