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: 4487621 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 D508FBEEAA for ; Sat, 5 Jul 2014 12:18:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19D6220263 for ; Sat, 5 Jul 2014 12:18:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E7E720221 for ; Sat, 5 Jul 2014 12:18:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756091AbaGEMSE (ORCPT ); Sat, 5 Jul 2014 08:18:04 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:51897 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426AbaGEMSC (ORCPT ); Sat, 5 Jul 2014 08:18:02 -0400 Received: by mail-wg0-f41.google.com with SMTP id a1so2549386wgh.12 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=lvt+CzLw+clNlFDA+fkBrITmJyUQS76BGdFZcB/9msi59kEQioYp4ztL6bFEEw/2kT sMvRlCi9EBoCyaAXcu7DKPHQ6MbaGS/Lq2/rsZRj5UQMDqHbz1RS+zzbV5kDCEcjmj+M ieGYdoBznAx7GStg8UpjQjkpLT4MdKmfholiT8R3zd7bKANkM/C+WYyXE5Y17COx+KCi O2vHrjLqVVwy2Mci80sWmkKM40GI/iUDPRNqBgfEAreE1y5NGsLYIagz5taoZuGNGr4C AgGzdxc9TAx8kto5NHCYcgAAWoOROE6A8uLOHPcod4+L3swlNA/4nq470Od8OEDcsUK+ oL1Q== X-Gm-Message-State: ALoCoQmg/Z7LP/z7sL2cDIutnLQJjlAFmKBq5Yoai/CbmS4MF/OHojpGN96X3Nf/InyjyvA80jgt 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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] |