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: 4490621 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 858ABBEEAA for ; Sun, 6 Jul 2014 18:27:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB222202A1 for ; Sun, 6 Jul 2014 18:27:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4E0D2022D for ; Sun, 6 Jul 2014 18:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068AbaGFS1r (ORCPT ); Sun, 6 Jul 2014 14:27:47 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:52920 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbaGFS1q (ORCPT ); Sun, 6 Jul 2014 14:27:46 -0400 Received: by mail-wg0-f46.google.com with SMTP id l18so47565wgh.17 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=SIqel4qGKoIm+/nMxvsnMWcwvZTIFaxOpgJL1mfh6MjkfxwDZq2eeHqiQjpwFJP+K7 G3YVRXT+nfePO2B73qgPsypXUhBLubS0W/VJqji2MBZMU9iwtExTa6uTGxMhoq2e+316 HFaGAcn7JGwBPztfgrmqy9ErtkaNI4TtnoahK5+3gBzDjX2CXP9+YGKVlPVwYXTDOAOI 54HJgudEJJNvLl8Z6mdZ5+uP8lqX4NtwZ8oXPv7MI0koFCDcO1MuYTtlIbbhjRoApxmy c+b/RnHzUl7Z7k10dhpMcy+tjNNKTsf2jrz2VFQvA6vdyRmiGSQ5Y5013ASSMyssY0MH fKwA== X-Gm-Message-State: ALoCoQmcg3WOsnJjOt9RvxEknIT+6a+F1x7RHoE8oIBbjgBnM++LNwHvmwhFtW45Ob2htbahu7K7 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 Cc: 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: 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 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/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] |