From patchwork Sun Jul 6 18:29:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490701 Return-Path: X-Original-To: patchwork-linux-arm@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 C82AE9F36A for ; Sun, 6 Jul 2014 18:30:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BAF5202A1 for ; Sun, 6 Jul 2014 18:30:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 403E22022D for ; Sun, 6 Jul 2014 18:30:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X3rAa-0007o4-9n; Sun, 06 Jul 2014 18:28:12 +0000 Received: from mail-we0-f179.google.com ([74.125.82.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X3rAW-0007n9-Ul for linux-arm-kernel@lists.infradead.org; Sun, 06 Jul 2014 18:28:09 +0000 Received: by mail-we0-f179.google.com with SMTP id w62so3426494wes.38 for ; Sun, 06 Jul 2014 11:27:45 -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=f700hoQDJ0IQstZcxhLUY7EYEARkksyTC8J9hahdCPg=; b=LwpywD82X/9bSLau7j22siHGBYBmqj3bfKv5J3P/I/xYDCtO5m6/nJwqJ6eXnlnucS l9jOE8rS3oBmXfZHZ5u++3wOR2ITn1Hqyc1BPsEM8HcPsGEBlhvyKOI5FkBOGq4JKzWX 5JWU8UtpSNXLjUxWWnDLzZxNmgCwMrAvKy12dYNc77YyVsysb5PO0EM7xfk60jmASeIl g//7uJokQMw+rELWH6XZtIwPKj572e10OHSEmxH5S18U3QgkFbiG7d8qcK/yI23KXfdH ZokOFnKBIAHXSsYVR53q7PTL7q55FI0pzmXIKRYjAXf8TuzNKLjfIWONgiH0FSbPoe1M ZYuA== X-Gm-Message-State: ALoCoQkmQiJvbmKtAvmPg9JHhDwgrtmri3II/xGnEg95aSeIPiFn4zTdzW7lv4cjdbePaqG/NKCG X-Received: by 10.180.208.13 with SMTP id ma13mr31848888wic.45.1404671265661; Sun, 06 Jul 2014 11:27: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 fn1sm105671804wib.18.2014.07.06.11.27.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:27:44 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Subject: [PATCH] video: fbdev: exynos: exynos_mipi_dsi_common.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:29:01 +0200 Message-Id: <1404671341-17941-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140706_112809_146312_ED583A38 X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: -0.7 (/) Cc: linux-fbdev@vger.kernel.org, Kukjin Kim , Rickard Strandqvist , Wolfram Sang , Daniel Vetter , Jingoo Han , linux-kernel@vger.kernel.org, Sachin Kamat , linux-samsung-soc@vger.kernel.org, Joe Perches , Andrew Morton , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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/exynos/exynos_mipi_dsi_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/exynos/exynos_mipi_dsi_common.c b/drivers/video/fbdev/exynos/exynos_mipi_dsi_common.c index 85edabf..9e4f9bd 100644 --- a/drivers/video/fbdev/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/fbdev/exynos/exynos_mipi_dsi_common.c @@ -219,11 +219,9 @@ int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id, case MIPI_DSI_GENERIC_LONG_WRITE: case MIPI_DSI_DCS_LONG_WRITE: { - unsigned int size, payload = 0; + unsigned int payload = 0; reinit_completion(&dsim_wr_comp); - size = data_size * 4; - /* if data count is less then 4, then send 3bytes data. */ if (data_size < 4) { payload = data0[0] |