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: 4490671 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 0DA219F390 for ; Sun, 6 Jul 2014 18:29:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F98D2022D for ; Sun, 6 Jul 2014 18:29:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88F22202E6 for ; Sun, 6 Jul 2014 18:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992AbaGFS2t (ORCPT ); Sun, 6 Jul 2014 14:28:49 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:63608 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbaGFS2s (ORCPT ); Sun, 6 Jul 2014 14:28:48 -0400 Received: by mail-wi0-f181.google.com with SMTP id n3so5798037wiv.8 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=CmosFke7ZXs+xz/SuY4Hg/0D0Rs3AlXlOjx19vfP79KjmXgRBKvm5fxByU563+ZDE/ Fm8xqx9PHNl3o40bKQNDsvCOPIAKUGocJHZkN0k+rlrQREv4LIGfwU2ODO6Hj5ymQXR8 j9ANex0uqBq5KCUzcajZX8cr++XFWDZm+3uwYmbhxvLP01onD/6cRN8uAXsY8TTZ/to4 ah7lDskgeeLgsClC6sd4Vd/XBreXuc5Aer6ah76tKhGnm4gz/Gh7DsIwx4IQYTzPabuj xQ0zTPYZs1GiQ/3K9WZke9dVJgKaILEIsJ8cm9I04pjiFC6bv6Hj9Ywx56/L2gH24+ad Q/JA== X-Gm-Message-State: ALoCoQmLIzhg1N99mmp8GCiq0HAt/Dudxmgu6sMmEwfFoVB1gKJxi+H5Fw7MGLoarEvlAkuWgyJ/ 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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); }