From patchwork Sun Jul 6 18:41:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491091 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 05AAB9F26C for ; Sun, 6 Jul 2014 18:40:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FF6F20253 for ; Sun, 6 Jul 2014 18:40:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 577E62024C for ; Sun, 6 Jul 2014 18:40:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbaGFSkM (ORCPT ); Sun, 6 Jul 2014 14:40:12 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:49950 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752141AbaGFSkK (ORCPT ); Sun, 6 Jul 2014 14:40:10 -0400 Received: by mail-wg0-f41.google.com with SMTP id k14so767764wgh.0 for ; Sun, 06 Jul 2014 11:40:09 -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=bwVDEIFjcpqmgUno73/RPsPkeF7r5KkJEXAixLEK04A=; b=G7PYF9nWEnk1LUsncWQdtXYfu4Cunema1C6KQjW2RKuKSnR8IOBwedopCS2Jy4vw+W 0XLEXsUg8Fjzz/sLhtpQxf4STXOqiiHiUnx78iEhuhK5qTVxZn6FjmABw7dqz2OlpFcE RwyclkeCUuc4fqsrgKVzIjZPoiK8kq00tgd9mAR8cg8cXmBDnru1Jkh/bMxDGtKq+uo8 y6QndjOkm28RKYvwVxXXluYGrw9qgjstTWDcgNEdbZ65mRjC5+ibK8O/F5kXhFT5OdbZ +hpopBqaUuJYq5foZtsaVEGaiPTdTiQxAj0JelMV0UeM6IrbLa+YKyMYSAIHKFdoap2P +08w== X-Gm-Message-State: ALoCoQkOfjqvKdbtLCdFJ+BrqRJIK/v124GReUexh6wBKNw6XuMZeks0dadnkE0GAeXAPMBMxP1l X-Received: by 10.194.85.78 with SMTP id f14mr27150019wjz.36.1404672009697; Sun, 06 Jul 2014 11:40:09 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id 19sm84114871wjz.3.2014.07.06.11.40.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:40:08 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , Arnd Bergmann , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: mbx: mbxfb.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:41:26 +0200 Message-Id: <1404672086-18977-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/mbx/mbxfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/mbx/mbxfb.c b/drivers/video/fbdev/mbx/mbxfb.c index 2bd52ed..320f263 100644 --- a/drivers/video/fbdev/mbx/mbxfb.c +++ b/drivers/video/fbdev/mbx/mbxfb.c @@ -689,7 +689,6 @@ static struct fb_ops mbxfb_ops = { */ static void setup_memc(struct fb_info *fbi) { - unsigned long tmp; int i; /* FIXME: use platform specific parameters */ @@ -714,7 +713,7 @@ static void setup_memc(struct fb_info *fbi) write_reg_dly(LMPWR_MC_PWR_ACT, LMPWR); /* perform dummy reads */ for ( i = 0; i < 16; i++ ) { - tmp = readl(fbi->screen_base); + readl(fbi->screen_base); } }