From patchwork Sun Jul 6 18:37:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490971 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 A7A299F26C for ; Sun, 6 Jul 2014 18:36:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4D0B2022D for ; Sun, 6 Jul 2014 18:36:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BE1020219 for ; Sun, 6 Jul 2014 18:36:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751960AbaGFSgE (ORCPT ); Sun, 6 Jul 2014 14:36:04 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:59050 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbaGFSgD (ORCPT ); Sun, 6 Jul 2014 14:36:03 -0400 Received: by mail-wi0-f171.google.com with SMTP id n15so14928815wiw.4 for ; Sun, 06 Jul 2014 11:36:02 -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=pJs0VeUoy11IpoVY9uyz6LPYjEh2g7YCGmaJN1l6PZo=; b=NvbJhN3cpQ78VMcxNX/Apj5ccy7uFQHkqAsleW/5W2BlDpdU8E3Cui79cxMbUquWHp 8Tbgo2BcljzdcI8zbGV/ZLYl55voacqpk3TlyadRgwyNUmBN8AbBfPfYhfD53v/ED+Z4 oFPsZMnXIbvVy5Sg+4lCbVADAoKDsmRkxayAtQKrC6cyWXWwrwUvU9G5j1MKNnmd9WKD ZQ4W5IrkDDfFjVPKUnaMbn6Qr1jUyv+DZ2KU9i3B9SD8q/39QE0oQcNYnHFIhwaoKgwo KdQHzfagwHD9ojJSwxB8QIGNR1qnunTq/yu7KV6/EOnUmzRETaFFFdyfzV/TeDOfxrHI Q8yg== X-Gm-Message-State: ALoCoQmrMGMj6ugN1JFXcbQVfbgbtReFre0CL8865jtajqRfSSZQOEnPnRuROP8dJD743qZeW021 X-Received: by 10.194.121.6 with SMTP id lg6mr1031177wjb.116.1404671761983; Sun, 06 Jul 2014 11:36:01 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id wp6sm84088465wjb.9.2014.07.06.11.36.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:36:01 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , 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: Sun, 6 Jul 2014 20:37:18 +0200 Message-Id: <1404671838-18639-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/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;