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: 4487651 Return-Path: X-Original-To: patchwork-linux-fbdev@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 B88F19F26C for ; Sat, 5 Jul 2014 12:19:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D907B20357 for ; Sat, 5 Jul 2014 12:19:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18B0620263 for ; Sat, 5 Jul 2014 12:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751169AbaGEMTB (ORCPT ); Sat, 5 Jul 2014 08:19:01 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:64188 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752878AbaGEMTA (ORCPT ); Sat, 5 Jul 2014 08:19:00 -0400 Received: by mail-wi0-f174.google.com with SMTP id bs8so13864388wib.7 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=ER3ApY+/MmX2v6c+Wnnt5d3Fr7ANBUK0pxf0nsJAzITu/QZmDuxlG7hlIoKPv0aC3P oDKsM+NoBUHFQebUKiq9hMUUNHoY0Y+7l1WCBQZuKDeZKlb/Nj5vfNgbRSUhVx2XYBav jl4b+e/Wxq7WdKUus6wSlbrFqHKHEk1sX8lEoeLP3nmSG4u05GcRWlPzqfqnMHLzB1/J f+Zvfe0K9/BuAIm8woXVl8T8DpSFHDCyZuR7E82mKeBkvKLgX3zCM8rKq58RVYPNu6Gv gFhnkbYeRDkvBVi8k1Z7TKFyyKujb8YgNAzPZWTZKmhl0g4k7tTU54p8yh6DHA7IEWiC 6+Ew== X-Gm-Message-State: ALoCoQleWSftyRKF2ffX3y5aJqVK6dcFhcePPF1p71u/m7lYPM38q54ye8gIUK4YS2pVvBWPwDUp 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 Cc: Rickard Strandqvist , Rickard Strandqvist , Kukjin Kim , Jingoo Han , Daniel Vetter , Laurent Pinchart , Rob Clark , 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: 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 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/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); }