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: 4487601 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 A6CC9BEEAA for ; Sat, 5 Jul 2014 12:18:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2D6820263 for ; Sat, 5 Jul 2014 12:18:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0490720221 for ; Sat, 5 Jul 2014 12:18:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756108AbaGEMSE (ORCPT ); Sat, 5 Jul 2014 08:18:04 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:52289 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754495AbaGEMSC (ORCPT ); Sat, 5 Jul 2014 08:18:02 -0400 Received: by mail-wg0-f43.google.com with SMTP id b13so2543802wgh.14 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=lb/cLpr5F7/yuy3KVWYxf2cgEwWc9nd+ygUjG88WDNqE3KuOYJaa8TKu/Kfi2aetJL dZuV1S0Eskjf28gHVc5bckbr/VINcfrxiYm1jYoImZgY3KqV2qOGQ27yM8RwGFwwdPdP PoEo9KtJJWOzOpuiSSy3nAFz8x34GDmpYlnXJTRatwCzBMSct/aTfL35eUu8fm68Qwhn Ee7n3HD6tODTmuuqPpEIsOhfsQvQtqCEQ34E+NVRJXx0K9Mek2N3W/zrU0PopPf4uh1Y 0/3nxfkT26u0UNW/DE2HWjW3SLFVihxyqkcq9dMTWAB1IDRSTJn1HAcwZVqdwXtGN6ef Z15A== X-Gm-Message-State: ALoCoQk1UvK8Alk1/u9HzoRWugAATL7yH9HiY7FSuXfn1Mq7Yfb9lxh3Z5Km0EcwFsy9iqHTC8pN 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 Cc: Rickard Strandqvist , Rickard Strandqvist , Kukjin Kim , Jingoo Han , Andrew Morton , Daniel Vetter , Joe Perches , Wolfram Sang , Sachin Kamat , linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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/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] |