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: 4490661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 9886E9F36A for ; Sun, 6 Jul 2014 18:29:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA57A202A1 for ; Sun, 6 Jul 2014 18:29:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16C9F2022D for ; Sun, 6 Jul 2014 18:29:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbaGFS2u (ORCPT ); Sun, 6 Jul 2014 14:28:50 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:57646 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960AbaGFS2t (ORCPT ); Sun, 6 Jul 2014 14:28:49 -0400 Received: by mail-we0-f174.google.com with SMTP id u57so3443472wes.33 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=CpESEsWs4g+Fq5PUhAupk+r2LdvdZSOx+1kJOP6JdOGJwTYMl2HYfkVVPhWoKmOJ3x WCRrSezvdxdKzNi5rDhdVNhPBSUkhbxDcZZOxCa8qkDLrKzQxWn7gCnSyz5C24F8k4/N Gei5sjFfDh3bgcZUkekN/y3y8WPTauCaw+oFAigop4wWhSRDcDgIUMIUZVZwNJdYDbDd z5Q6ev+kcm9xaJqgS7flQDDMJzjvAC8XLpzCBWq6aT9yXCp2z1RNbp14YmaGEWdYYTku bjvzdyzDKa3tInPDBXL8MZtFVhAnr+hOMuMpm+xmHM8bvgKoM3dfgYNCvBSRru0FY/DN BoBA== X-Gm-Message-State: ALoCoQnyUbqW4U6GeO7kupDRfqamsHhr2geOGrjxQAzZ78hhc3Wp1ZgC/aOnfomhhnUc4l2GvIFq 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 Cc: Rickard Strandqvist , Kukjin Kim , Jingoo Han , Daniel Vetter , Laurent Pinchart , 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: 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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/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); }