From patchwork Sun Jul 6 18:31:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490691 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 3CAA29F36A for ; Sun, 6 Jul 2014 18:30:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 807EB202A1 for ; Sun, 6 Jul 2014 18:30:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7E102022D for ; Sun, 6 Jul 2014 18:30:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752262AbaGFS3w (ORCPT ); Sun, 6 Jul 2014 14:29:52 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:54443 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbaGFS3u (ORCPT ); Sun, 6 Jul 2014 14:29:50 -0400 Received: by mail-wg0-f47.google.com with SMTP id l18so767899wgh.30 for ; Sun, 06 Jul 2014 11:29:49 -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=KII7JhvZK4O+QaKhzrRgZeYnR0S9mDZmaIZOfqeupSA=; b=LCuppkRNVoHERTdzXDe2nbf9rUmgaON2zM/dZmpFg0XsOaIgZxMTKqB7mPO8ESV9EU feuCHm7SoX2ir5xS8/unUsbMOB3K3f3d/9P/Umqa+0XYMvwY1mMi2X0CdbOgA2yTlwTn +VlkL0yvIavHg/Li3gWFaK79EVYz3vowYmWUtFJ/Aj3af3JyLOvm3JFSMWM6EBduKYg/ u/xX0ij+1om09pM4y+XacMu0ixRtuvx+/T3pXmNASaJUR36D4JYShHFBnW4jmpPSJdYX 1FLPoZbdwuSV8izK+OOA03gw9dJg2c5FqyqXEKPqSp4jRRNLS/CXBONaa2cLHwgGWGMb qNPA== X-Gm-Message-State: ALoCoQlTjZ4UrZtHafjKtrk9QfVJ6KpXf6K2F4ttMIp9jKcPmV8G1RJXIdZGyoefzDNT5gdN9oih X-Received: by 10.180.10.98 with SMTP id h2mr31979050wib.29.1404671389595; Sun, 06 Jul 2014 11:29:49 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id k19sm105651269wie.20.2014.07.06.11.29.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:29:48 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: g364fb.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:31:06 +0200 Message-Id: <1404671466-18112-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=-7.6 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 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/g364fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/g364fb.c b/drivers/video/fbdev/g364fb.c index 223896c..f84a70e 100644 --- a/drivers/video/fbdev/g364fb.c +++ b/drivers/video/fbdev/g364fb.c @@ -194,11 +194,9 @@ static int g364fb_setcolreg(u_int regno, u_int red, u_int green, */ int __init g364fb_init(void) { - volatile unsigned int *pal_ptr = - (volatile unsigned int *) CLR_PAL_REG; volatile unsigned int *curs_pal_ptr = (volatile unsigned int *) CURS_PAL_REG; - int mem, i, j; + int mem, i; if (fb_get_options("g364fb", NULL)) return -ENODEV;