From patchwork Sat Jul 5 12:21:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487661 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 09BFF9F26C for ; Sat, 5 Jul 2014 12:20:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3183A20357 for ; Sat, 5 Jul 2014 12:20:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 558EB20263 for ; Sat, 5 Jul 2014 12:20:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754532AbaGEMT7 (ORCPT ); Sat, 5 Jul 2014 08:19:59 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:39968 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbaGEMT7 (ORCPT ); Sat, 5 Jul 2014 08:19:59 -0400 Received: by mail-wg0-f42.google.com with SMTP id n12so756811wgh.1 for ; Sat, 05 Jul 2014 05:19:57 -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=e5fc9Gz7dgIDs7N9WoA0iher7sBv1ow3D1GR0nfBsCI=; b=MU5y7QPDxr6tEaOmS2sumWyyvuuadB769rH39Pw0Ua/Z5B3dD/i/lgvxkKQVgnL8bE /oK6nKRMJS/5L8BqWPnW5frTovzE9gmJvV5+mt10wDc0n+/f6KFDFktHZs7Nr5sCbjBA wruQUIZhFBAAfYN8H2I1lkLrhs27LM9NBragFlTFdoHJ3qP/aBPS8gGPTAyQ0i7FiUfV IkXlfDLrjnkXlZyZcui4h34JbVzLLjRDWVRLKadaGykJNvubKRKZTVsc+TTSApuH1ImB YvkftVeOIHRTVhwdGmhEdr3P28XWNb8p7oD/+lG19IRxQxEiTYQbOUpKZMaR3D6cNyYd bG2Q== X-Gm-Message-State: ALoCoQkD1iY4nO6UtSjee1f6NhekfCD/ZS6/W0rGyd4TpIDCwaoSi3QimhDrAyCwB6oZ/AiQHV7q X-Received: by 10.194.121.6 with SMTP id lg6mr2143453wjb.116.1404562797918; Sat, 05 Jul 2014 05:19:57 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id wp6sm75448736wjb.9.2014.07.05.05.19.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:19:57 -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: g364fb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:21:14 +0200 Message-Id: <1404562874-19440-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 Acked-by: Geert Uytterhoeven --- 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;