From patchwork Sun Jul 6 18:30:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490731 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 321039F36A for ; Sun, 6 Jul 2014 18:31:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65B1C202A1 for ; Sun, 6 Jul 2014 18:31:07 +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 923D0202E6 for ; Sun, 6 Jul 2014 18:31:06 +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 1X3rBY-0007yT-Kf; Sun, 06 Jul 2014 18:29:12 +0000 Received: from mail-wg0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X3rBV-0007sI-S0 for linux-arm-kernel@lists.infradead.org; Sun, 06 Jul 2014 18:29:10 +0000 Received: by mail-wg0-f47.google.com with SMTP id l18so748837wgh.18 for ; Sun, 06 Jul 2014 11:28:47 -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=n74bVUtc8kx+Q1GrWBcipRQe8bj/9iBT9uP4EuanP4o=; b=gbcQlK1nFVsycN3VKGlECsAXpIS00z8jD2hp5ZNqfekmFDZ3Eub89j5nOLf9Xflhf4 LmZGIntfDWGtZp/F2SuM0hyN61HfM0qfUp4Rh15bnoh9jFNJ+YCPeOjm37Ba80Otva+V SZUsKm4ZUHUFj8xhtQvmk2OuzBq0YzvI0xyhzezjyFFsLMcG4RhfPnDT36f5EYn6W10F paqXy0/xW+Ss2pFmgGjmnrsFE5X9HwUchCBv83eEotmBZXG117lMSFR5DKpULLqc26Dg YyMmQUa7BN2MhqvnyyiNQuHsgV6WjoQystzAJgsB1/Oyb5Md0ABRNKgB8dN5rykO+cMo Ju4A== X-Gm-Message-State: ALoCoQnuIa9nTEYbj+9KfJzN+A0oS0maibHRxVuumgucG0/FYQvkOIGH8eJ0KEdGe06YLIbpxZiZ X-Received: by 10.180.212.9 with SMTP id ng9mr34598101wic.46.1404671327781; Sun, 06 Jul 2014 11:28:47 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id p3sm84050308wjw.13.2014.07.06.11.28.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:28:47 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Subject: [PATCH] video: fbdev: exynos: s6e8ax0.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:30:03 +0200 Message-Id: <1404671404-18025-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_112910_051809_89CA6EB1 X-CRM114-Status: GOOD ( 11.64 ) X-Spam-Score: -0.7 (/) Cc: linux-fbdev@vger.kernel.org, Kukjin Kim , Rickard Strandqvist , Sachin Kamat , Daniel Vetter , Jingoo Han , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Laurent Pinchart , 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/s6e8ax0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/exynos/s6e8ax0.c b/drivers/video/fbdev/exynos/s6e8ax0.c index 29e70ed..9bd67e7 100644 --- a/drivers/video/fbdev/exynos/s6e8ax0.c +++ b/drivers/video/fbdev/exynos/s6e8ax0.c @@ -602,11 +602,10 @@ static void s6e8ax0_acl_ctrl_set(struct s6e8ax0 *lcd) static void s6e8ax0_read_id(struct s6e8ax0 *lcd, u8 *mtp_id) { - unsigned int ret; unsigned int addr = 0xd1; /* MTP ID */ struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); - ret = ops->cmd_read(lcd_to_master(lcd), + ops->cmd_read(lcd_to_master(lcd), MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM, addr, 3, mtp_id); }