From patchwork Thu Feb 5 14:11:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5784771 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E66759F302 for ; Thu, 5 Feb 2015 14:12:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23BFE2010B for ; Thu, 5 Feb 2015 14:12:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC0D520274 for ; Thu, 5 Feb 2015 14:12:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757591AbbBEOMM (ORCPT ); Thu, 5 Feb 2015 09:12:12 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:39123 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757432AbbBEOML (ORCPT ); Thu, 5 Feb 2015 09:12:11 -0500 Received: by mail-pa0-f49.google.com with SMTP id fa1so10214880pad.8; Thu, 05 Feb 2015 06:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ObSJwpuox13Ih6aiR38toFBNPfmfgPVuSt/m8RpMgZc=; b=SXYadvytPlFBBqfacLh2BjRTHslxXgl2C4EJAAuywd7oGHeD2EqizzS+S/PaBnoe7j Q0KUtPwVIojcPJuRjW0ptP6iW8K4t7BY/RLPqbpRFDwsffTYYRaLfzaZjfQAAYkfCmhk lqR5DhgtL6rHiKxM7AB5qq/VIdcw+p6tBb3WCzuhe41uA5DHplZO6I2c/y3Q+kAOcppK kRnSy5Fh1pV99G3oAi9g553JoP2j9rRpOGbC0Rg0CtzUD3YoyXNrTXtj+OhrEl9VVJM2 GLEsxxuZZ8u0/IRc25t0QqcTeVt+ZACaPVj/KdEqhEbonhe5sBSJV4CUgwIQDVwdNxt/ XRYw== X-Received: by 10.70.88.39 with SMTP id bd7mr4522812pdb.83.1423145530319; Thu, 05 Feb 2015 06:12:10 -0800 (PST) Received: from localhost.localdomain ([122.169.140.147]) by mx.google.com with ESMTPSA id rn15sm5282942pab.10.2015.02.05.06.12.07 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Feb 2015 06:12:09 -0800 (PST) From: Sudip Mukherjee To: Florian Tobias Schandinat , Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Sudip Mukherjee , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: via: remove unused variable Date: Thu, 5 Feb 2015 19:41:59 +0530 Message-Id: <1423145519-30862-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP the mode_crt_table was only assigned some data, but that was never again reused. It will be safe to remove that. Signed-off-by: Sudip Mukherjee --- 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 5d21ff4..51ac3f3 100644 --- a/drivers/video/fbdev/via/lcd.c +++ b/drivers/video/fbdev/via/lcd.c @@ -551,11 +551,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);