From patchwork Sat Jul 5 12:53:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488321 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F0BA49F26C for ; Sat, 5 Jul 2014 12:52:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 279232034F for ; Sat, 5 Jul 2014 12:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72E13202BE for ; Sat, 5 Jul 2014 12:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755360AbaGEMwE (ORCPT ); Sat, 5 Jul 2014 08:52:04 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:47932 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbaGEMwD (ORCPT ); Sat, 5 Jul 2014 08:52:03 -0400 Received: by mail-we0-f181.google.com with SMTP id q59so2539400wes.26 for ; Sat, 05 Jul 2014 05:52:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EitnukH8aGzu6L4ENHFfP2sl6uYHyx63+qix95tSAYw=; b=lkqm/wppP+yOsAe+Rq+n6MSHthe1Pj7T/hl9b72G/1s9oHlXrcIPa4Nc+YpXoi6IE1 37jEYX/myerfcf2shYYzC7bMNpOTSD9h84kvsArgjTsL5CJc7XhgDDnbI7DnmVH6txuh CgksDT7e1qxkcqol7puJHj1Q2jmtjbyU8JnAib3FUxY+MtBvE5hjCjrafN2QkU+VkFHb 6SHhx+wwfAnRPYwdw6PWyVS1fjgXmYxdyoKKynapdJU+/2dk0gj8qQuApc8eyS8bnubW V2/H3hAu3PQt1m0RzeuW0qWwTCnTnKq/bzBXqm5dtgZ2lZbz13e+ucOUNmChz++QgA9E N9wA== X-Gm-Message-State: ALoCoQlUi4FIoCRXGoyXgHiZGtzTYRNkeHYJvnrxmw7HOsUkcW/Wlnr+sg8ZItXoO9rjxqu/+TRP X-Received: by 10.180.75.47 with SMTP id z15mr10750973wiv.80.1404564721903; Sat, 05 Jul 2014 05:52:01 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id u10sm90848675wix.11.2014.07.05.05.52.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:52:01 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , Daniel Vetter , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: via: lcd.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:53:18 +0200 Message-Id: <1404564798-22148-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 From: Rickard Strandqvist Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/video/fbdev/via/lcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/via/lcd.c b/drivers/video/fbdev/via/lcd.c index 5d21ff4..c15ed30 100644 --- a/drivers/video/fbdev/via/lcd.c +++ b/drivers/video/fbdev/via/lcd.c @@ -551,11 +551,11 @@ 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); + 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);