From patchwork Sat Jul 5 12:33:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487941 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 60DB4BEEAA for ; Sat, 5 Jul 2014 12:32:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8136A202A1 for ; Sat, 5 Jul 2014 12:32:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ABEB42039D for ; Sat, 5 Jul 2014 12:32:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750810AbaGEMcg (ORCPT ); Sat, 5 Jul 2014 08:32:36 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:38877 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbaGEMce (ORCPT ); Sat, 5 Jul 2014 08:32:34 -0400 Received: by mail-wg0-f48.google.com with SMTP id m15so1453593wgh.19 for ; Sat, 05 Jul 2014 05:32:33 -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=yK4Zk4wL5adMNYCK7oxn2X7qBHGvHDCPCWf0AECSlFw=; b=KKpA5nX589VWwe8OCoKfjIwPD7EoL2X2SgroIIihp46NPzlQ12PPXzqda3jGhiYCOY CHx17Ha44vB3URK0TCwBJwD7RvZAzjF2G1STSgrR0mWJKgFTL5gIG3agBesURAkhQ/uj +Up9UP4Ol/0SV2k2a87HrFyR/TQpbgG29uWQPfEyOHNG8183vN3c/D6zrZw0IL3KYjIA LIlVSOH4LGDO9Z5u1rxZFrXWHIPYo7XJg+869A7S3vBdmSHOfPpkqnNxQUEG+CeUCf6b fAKoORxAiEzBHOi5XHP0yhsw45SuGLCdnnw2Di2re8I5pnNcf17HMReIAO+Bzq9DAo5T aTYg== X-Gm-Message-State: ALoCoQlbNX+TVT0pIuzj15IDX4k3y2hrs3ncQjbbx7Tw8mgQuCL0dSXil9m8tZan4exG9nCgRCpp X-Received: by 10.180.72.38 with SMTP id a6mr64018266wiv.29.1404563553659; Sat, 05 Jul 2014 05:32:33 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id l8sm75506664wje.15.2014.07.05.05.32.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:32:32 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Grant Likely , Rob Herring , Maxime Ripard , =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= , Jingoo Han , Fabio Estevam , Julia Lawall , Marek Vasut , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] video: fbdev: mxsfb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:33:50 +0200 Message-Id: <1404563630-20521-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/mxsfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index accf48a2..d0a55c6 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -594,7 +594,6 @@ static int mxsfb_restore_mode(struct mxsfb_info *host, struct fb_videomode *vmode) { struct fb_info *fb_info = &host->fb_info; - unsigned line_count; unsigned period; unsigned long pa, fbsize; int bits_per_pixel, ofs; @@ -672,7 +671,6 @@ static int mxsfb_restore_mode(struct mxsfb_info *host, writel(fb_info->fix.smem_start, host->base + host->devdata->next_buf); } - line_count = fb_info->fix.smem_len / fb_info->fix.line_length; fb_info->fix.ypanstep = 1; clk_prepare_enable(host->clk);