From patchwork Sat Jul 5 12:37:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488021 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 B97D3BEEAA for ; Sat, 5 Jul 2014 12:36:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E504520357 for ; Sat, 5 Jul 2014 12:36:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F5AC20115 for ; Sat, 5 Jul 2014 12:36:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbaGEMg1 (ORCPT ); Sat, 5 Jul 2014 08:36:27 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:54140 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbaGEMg1 (ORCPT ); Sat, 5 Jul 2014 08:36:27 -0400 Received: by mail-wi0-f169.google.com with SMTP id hi2so13089278wib.4 for ; Sat, 05 Jul 2014 05:36:25 -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=ooz/VwuiVLmIB/4vNEQDlcWcSH1+3zHe9BelC2tPb5Y=; b=jpn5X0+v7Ou6HDsru/RWBcbD59QxVPIvZ+o3Qq8OfYPidSD/s9+yYs6DZdpc1Caphr AYeq7Rp62cHNhlhKL+N3DpcmhfvzBWyOTsgFmGIEQjHs0mIyZn+sx+QaWD3iYUwBIoUg mBMMR4TzANEz+Dkv/0TmowVSy1ZGNX0CPuVS5pI8MMpFZmM9XeWHbYQ6LOQA1uvdTtHF JiAp3f9yzIPTlQRhlAsKquU30UhereZQxFwe9E0qFd8sCV/bb9/4M6Ve63jvEZuqbTnS pW7h6gghL9zUgpjxC8tOrwuQwdQ3+xuXqNvbAOaH/foc5JRpZBhJrrdTdMWqK6Txqm5x w03Q== X-Gm-Message-State: ALoCoQnaJJrtCJWzGyfE6R6kfTVnmrn9RboAD8mBsZ8aFNJWKamjfbw1UWq5TLOpAIOQV/GQLn7B X-Received: by 10.194.200.3 with SMTP id jo3mr2475347wjc.110.1404563785870; Sat, 05 Jul 2014 05:36:25 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ev9sm90677931wic.24.2014.07.05.05.36.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:36:25 -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: omap: hwa742.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:37:42 +0200 Message-Id: <1404563862-20852-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/omap/hwa742.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap/hwa742.c b/drivers/video/fbdev/omap/hwa742.c index a4ee65b..65b2370 100644 --- a/drivers/video/fbdev/omap/hwa742.c +++ b/drivers/video/fbdev/omap/hwa742.c @@ -787,7 +787,7 @@ static void calc_hwa742_clk_rates(unsigned long ext_clk, static int setup_tearsync(unsigned long pix_clk, int extif_div) { - int hdisp, vdisp; + int hdisp; int hndp, vndp; int hsw, vsw; int hs, vs; @@ -803,7 +803,7 @@ static int setup_tearsync(unsigned long pix_clk, int extif_div) vsw = vsw & 0x3f; hdisp = (hwa742_read_reg(HWA742_H_DISP_REG) & 0x7f) * 8; - vdisp = hwa742_read_reg(HWA742_V_DISP_1_REG) + + hwa742_read_reg(HWA742_V_DISP_1_REG) + ((hwa742_read_reg(HWA742_V_DISP_2_REG) & 0x3) << 8); hndp = hwa742_read_reg(HWA742_H_NDP_REG) & 0x7f;