From patchwork Sat Jul 5 12:27:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487801 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 B695DBEEAA for ; Sat, 5 Jul 2014 12:25:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF72C20357 for ; Sat, 5 Jul 2014 12:25:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1882E20263 for ; Sat, 5 Jul 2014 12:25:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbaGEMZr (ORCPT ); Sat, 5 Jul 2014 08:25:47 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:36979 "EHLO mail-we0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbaGEMZr (ORCPT ); Sat, 5 Jul 2014 08:25:47 -0400 Received: by mail-we0-f169.google.com with SMTP id t60so2562365wes.28 for ; Sat, 05 Jul 2014 05:25:46 -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=TDuFoR9NRXyBlkc6hhRAfPKsFmkeA9sK+13Upr4qH0o=; b=ATkZ07KXbYl7q/ZgDHi6/N6y6yqCv3yvN/zLXecI3bze4phBFg+fklTBJSWrLAV5Va EZLebDi0uU/NYADHGLY87LqDzKeX7GgbZK4E97tXmJwa+fBEccvEQGFwLMvesSlZ7K0H JfDWPSkILBzpjIvRY8OKgOuP/FZxpWZiPF6FICftgXJ6tw7WfA13k+Ib1kC+PISpxE4F 5pAsskqAfMQ7z1jplhz9OtFVw9OCyVVbDb2VLccuMWxXc3ua4077GtBC2smQ/AM+g5Q5 n7dktBn7K180FKgZPj9NGdZYQyX2DFGRZZVWPkeAiQYyQHRuKwY1CdN4AM8V9CogCWHz y9ww== X-Gm-Message-State: ALoCoQnDjIp8dUwKqfk5IuZRKR+1xAvN0C99f+HYieaOZbeSQ6XD1jqKDnbF0cS1NZC2nPtflTvZ X-Received: by 10.180.74.11 with SMTP id p11mr62047924wiv.68.1404563145891; Sat, 05 Jul 2014 05:25:45 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id d4sm73078627wik.20.2014.07.05.05.25.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:25:45 -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: kyro: STG4000OverlayDevice.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:27:02 +0200 Message-Id: <1404563222-19941-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/kyro/STG4000OverlayDevice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/kyro/STG4000OverlayDevice.c b/drivers/video/fbdev/kyro/STG4000OverlayDevice.c index 0aeeaa1..9fde0e3 100644 --- a/drivers/video/fbdev/kyro/STG4000OverlayDevice.c +++ b/drivers/video/fbdev/kyro/STG4000OverlayDevice.c @@ -331,7 +331,7 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg, u32 ulScale; u32 ulLeft, ulRight; u32 ulSrcLeft, ulSrcRight; - u32 ulScaleLeft, ulScaleRight; + u32 ulScaleLeft; u32 ulhDecim; u32 ulsVal; u32 ulVertDecFactor; @@ -470,7 +470,6 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg, * round down the pixel pos to the nearest 8 pixels. */ ulScaleLeft = ulSrcLeft; - ulScaleRight = ulSrcRight; /* shift fxscale until it is in the range of the scaler */ ulhDecim = 0;