From patchwork Sat Jul 5 12:20:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487711 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 51CB49F26C for ; Sat, 5 Jul 2014 12:21:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92BBD20414 for ; Sat, 5 Jul 2014 12:21:28 +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 AEA6B20263 for ; Sat, 5 Jul 2014 12:21:27 +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 1X3Ow9-0006RR-DX; Sat, 05 Jul 2014 12:19:25 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X3Ow6-0006NK-TB for linux-arm-kernel@lists.infradead.org; Sat, 05 Jul 2014 12:19:23 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so2548142wes.36 for ; Sat, 05 Jul 2014 05:18:59 -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=EjHbcaWqJcuJmm6iIjUOLCLHU3E88TzWf3QlhCYoI1s=; b=VwK5rHso/+BeeS4S2195WSj8BtbMS2WqqGokE2kH7EK3crs1Qmr/oH/qVAWSvc5OO1 lS82WaJ6jxWDy51YxNu8ZDkO18295Qpy7FGEIHBHtDVAfLT3srXTgSyUh9ES/vq4zzPV c2g9q0/3rcgchawXiQpeLja4zI5GpOTPTyBDXsQkwEMjqFRdh/6WFviRYuA6lPRcWSrH ZNaD/42uyp/e9kNVBzqw+Rz4wqD1SPcd1o7ytttxWk+CFa5BRVdI0hxSGYoVbvfBMVVB lMRkviIQ9YJQDVKH91ibUJ/PFySb0z8BJE9MMjeEKmy+cA8WM8CN2DBomMAf+ZIBUQyS 0e5w== X-Gm-Message-State: ALoCoQlieE1HOA43ZjrpU4vBqna78AaC6n/BVnGsi7wMo3c38tr6tq68OJyajNPUJ7TLZ5o8mbFA X-Received: by 10.194.57.208 with SMTP id k16mr18752998wjq.51.1404562739668; Sat, 05 Jul 2014 05:18:59 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id rw4sm75413771wjb.44.2014.07.05.05.18.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:18:58 -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: Sat, 5 Jul 2014 14:20:15 +0200 Message-Id: <1404562815-19356-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_051923_093388_AEA1847B X-CRM114-Status: GOOD ( 10.96 ) 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, Rickard Strandqvist , Rob Clark , 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=-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/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); }