From patchwork Sun Nov 19 00:57:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Cretaro X-Patchwork-Id: 10064969 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1A4036023A for ; Sun, 19 Nov 2017 00:58:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09EC12936C for ; Sun, 19 Nov 2017 00:58:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF82429622; Sun, 19 Nov 2017 00:58:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9814B2936C for ; Sun, 19 Nov 2017 00:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935027AbdKSA6U (ORCPT ); Sat, 18 Nov 2017 19:58:20 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:46291 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935009AbdKSA6U (ORCPT ); Sat, 18 Nov 2017 19:58:20 -0500 Received: by mail-wm0-f66.google.com with SMTP id u83so4170784wmb.5; Sat, 18 Nov 2017 16:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G6mILhd4AnxEQhRg/dWfbIGVTDt0juxMuf6JwjpFFlM=; b=pmKMhYTrJI0dYkGIZb8Ig6xv9JMiP2MapFzFOlBF1fJTcu3nlx9wJClE5/H7m+pV9h 45AUxEfM1AJHL5cJEqibxLzvR6H24Ro9kv+IDqURwqYHBs/h9K+bHgKGTxk18dE2nPiO 0f3nb72dK7cdsQKdRtKCEQFBQNjf9OWMiN2km0oxeuGmLarmCT3QEwf4/JxCrLIM0DiV xgQatHcMPAZOnJawcO5KEbu2pSjXzi54DSEsTkCaqkWrJa/qOaWlV+q/dhG6JJ/oDU06 X0UjlQ5nRqdNHwTYMI/9Rrdm19DPtK/HzkU2jOCAO6Ilvmzvq4UJ6KmhOzWO4XnI60SD EmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G6mILhd4AnxEQhRg/dWfbIGVTDt0juxMuf6JwjpFFlM=; b=NVuxkZ+Qq7CPw0RFkBSXD70X9E2NGQy2/pqLHBvi4Sxfn+EHWSFYOSlgFluYIF8uGH M1lmaYrnWigvg78Hy65rFmZWtlpfwMSN/LP0tsB+J8fWLIn9yvUyxZs+2cKNjxJda+Sd g6tCCPjld4D4MzeKK68VOxskOROKRcPVbpJSFdVMju0QvcmciEwkzB6bpwON9ut23lpb VYO+5Ew3Qin3/3kDy9/AGH7BvNclOOjvBl39ymALqOmsEybMHT897mQms24mujTH62PZ FUB0u+Cn/dpn717QZq5BKGVj4NLqsXiQcq03RU5tuT25rKlWUcxeC55W041z5BfxTuZj 3LUQ== X-Gm-Message-State: AJaThX5vq2KUn6IiElMYUs1qU+Yon5CKpmsGCGZffB8oIathWhwc87Bc +Tqpazh7mt/M+HxkkGnEF2s= X-Google-Smtp-Source: AGs4zMZOX4YwBauV0l1AXDfr3SdDBWoQpnjVy/oZ7FbDIm/HXW+JBZaBIUqX8I8/HKvCWMpktYY/0g== X-Received: by 10.28.154.70 with SMTP id c67mr7945428wme.142.1511053098667; Sat, 18 Nov 2017 16:58:18 -0800 (PST) Received: from localhost.localdomain ([2.236.87.61]) by smtp.googlemail.com with ESMTPSA id k14sm7394806wrc.90.2017.11.18.16.58.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Nov 2017 16:58:17 -0800 (PST) From: Paolo Cretaro To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, gwendal@chromium.org, enric.balletbo@collabora.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Cretaro Subject: [PATCH] iio: cros_ec: Remove unused variables Date: Sun, 19 Nov 2017 01:57:45 +0100 Message-Id: <20171119005745.12192-1-paolocretaro@gmail.com> X-Mailer: git-send-email 2.15.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix gcc warnings about variable 'ec_device' being set but not used in these files: common/cros_ec_sensors/cros_ec_sensors.c:194:25 light/cros_ec_light_prox.c:184:25 Signed-off-by: Paolo Cretaro --- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 -- drivers/iio/light/cros_ec_light_prox.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c index ed8063f2da99..7d30c59da3e2 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c @@ -191,7 +191,6 @@ static int cros_ec_sensors_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); - struct cros_ec_device *ec_device; struct iio_dev *indio_dev; struct cros_ec_sensors_state *state; struct iio_chan_spec *channel; @@ -201,7 +200,6 @@ static int cros_ec_sensors_probe(struct platform_device *pdev) dev_warn(&pdev->dev, "No CROS EC device found.\n"); return -EINVAL; } - ec_device = ec_dev->ec_dev; indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*state)); if (!indio_dev) diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c index b2a46b390d5c..acfad4aeb27a 100644 --- a/drivers/iio/light/cros_ec_light_prox.c +++ b/drivers/iio/light/cros_ec_light_prox.c @@ -181,7 +181,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); - struct cros_ec_device *ec_device; struct iio_dev *indio_dev; struct cros_ec_light_prox_state *state; struct iio_chan_spec *channel; @@ -191,7 +190,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev) dev_warn(dev, "No CROS EC device found.\n"); return -EINVAL; } - ec_device = ec_dev->ec_dev; indio_dev = devm_iio_device_alloc(dev, sizeof(*state)); if (!indio_dev)