From patchwork Sat Jul 5 12:19:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487691 Return-Path: X-Original-To: patchwork-linux-arm@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 AEB57BEEAA for ; Sat, 5 Jul 2014 12:21:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D98E520411 for ; Sat, 5 Jul 2014 12:21:09 +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 F2D9E20263 for ; Sat, 5 Jul 2014 12:21:08 +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 1X3OvC-0006H6-HN; Sat, 05 Jul 2014 12:18:26 +0000 Received: from mail-wg0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X3Ov9-0006Fn-6N for linux-arm-kernel@lists.infradead.org; Sat, 05 Jul 2014 12:18:24 +0000 Received: by mail-wg0-f51.google.com with SMTP id x12so2463097wgg.22 for ; Sat, 05 Jul 2014 05:18:01 -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=Y6c036/MW8sSb64Vy7lSlft3qJ4gynrh88cCksGJhuA=; b=Ad4PsSRF2Fn1f6OkzmOpcW/lggcqBnN8/2NhVjX4lAq/Xdl5SFUGQGhwQUgH51Ch9J y4m1DcACKoHnW8LsUu0DlBTTVBJvMZhOHxn3rUj1BwFRvZXJoxhyVYMCNjeM6nk6DW2w ZU8qt6bwv+aEWt38qulKbXNu0vJBBsvGXF9RjnHkih30BjYp1zYscdX+S/qkS15S2gi2 1k2OhEOkYwyAJOCiBpg3jxpqwBoeYHoV362lqnHd+z4955stvY8YajZkrPUvdsbfQRez cD8Em7Eanq8pyWeMVsvR4rkgo8d1vUm8KyDyEJ40oL3ikNymoydKn3mi6EmmUBnFHE5b Y8qQ== X-Gm-Message-State: ALoCoQmX5IBdFFfrvN1dNJ7Ju/V0x0COger/k2aru/muXJ9w3R4Tx6noQkb82rZJrv6i2szNQ5Ba X-Received: by 10.180.206.15 with SMTP id lk15mr35818043wic.43.1404562681093; Sat, 05 Jul 2014 05:18: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 ed15sm85785251wic.9.2014.07.05.05.17.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:18:00 -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: Sat, 5 Jul 2014 14:19:17 +0200 Message-Id: <1404562757-19274-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-20140705_051823_399382_39286267 X-CRM114-Status: GOOD ( 10.83 ) 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, Rickard Strandqvist , 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=-1.9 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 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/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] |