From patchwork Sun Jul 6 18:44:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491181 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 2C4A6BEEAA for ; Sun, 6 Jul 2014 18:43:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D1D120253 for ; Sun, 6 Jul 2014 18:43:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E2B42024C for ; Sun, 6 Jul 2014 18:43:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752411AbaGFSnU (ORCPT ); Sun, 6 Jul 2014 14:43:20 -0400 Received: from mail-we0-f182.google.com ([74.125.82.182]:35437 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbaGFSnR (ORCPT ); Sun, 6 Jul 2014 14:43:17 -0400 Received: by mail-we0-f182.google.com with SMTP id q59so3482675wes.27 for ; Sun, 06 Jul 2014 11:43:16 -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=LLMUQUhcmOoJW9m3gXhFw6XWG+Nq9Y+BVqjt7rihHl8=; b=ek1l66wqb33eDOAmI3aZIu8n6OQDvoYVd4a3raQyV0DqJcaZV50YUYGwqSroARDaip IpcUpExkPlUvG7disBFvmhTQCRxStEhZqRDjMTNnHbJlh6nhxEABr/rS7tFWnuxi5QjU +k0Dlx09Q0lY411Od111Hfpol/NnFmeEh6ZU3KR5cExCg2HwM+4yjFh4hSbkRyHNNgHf RAGdKNqzaWzee/m2UnP22bf8X71wojIVQi3VXuJofJVtRmxSDk8nX5LdR1mSO7D4zUhM mkMWa2waAjbeQG9ZbPEjT5YpkU5JIoeCAYh8gvyAyOR+BFNPKgCm+LlAJjWoQHdXQzwX cMww== X-Gm-Message-State: ALoCoQkgnHldMCjgrDC4mEukUD1Lpcd9w/pNdFCXoVvNjqUfxVtZYdJ73PVTAmQZ473X3PsETD2+ X-Received: by 10.180.91.194 with SMTP id cg2mr32367604wib.12.1404672195955; Sun, 06 Jul 2014 11:43:15 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id fb8sm105787379wib.15.2014.07.06.11.43.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:43:15 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: 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: Sun, 6 Jul 2014 20:44:32 +0200 Message-Id: <1404672272-19231-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 Acked-by: Marek Vasut --- 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);