summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorPaolo Cretaro <paolocretaro@gmail.com>2017-09-14 23:19:22 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-09-24 12:34:57 +0100
commit11d36e6a8e2a75db1b216dbd9cda54560cfbe5da (patch)
treee50269130b554b112915d149e17dfadf1a1627ed /drivers/iio
parent30f130d274c9de9b89d837674accab0f85cbf5a5 (diff)
downloadlinux-11d36e6a8e2a75db1b216dbd9cda54560cfbe5da.tar.bz2
iio: cros_ec: Remove unused variable
Fix gcc warning: cros_ec_baro.c:130:25: warning: variable ‘ec_device’ set but not used Signed-off-by: Paolo Cretaro <paolocretaro@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/pressure/cros_ec_baro.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/pressure/cros_ec_baro.c b/drivers/iio/pressure/cros_ec_baro.c
index 37034188ab8e..4599fde4dd25 100644
--- a/drivers/iio/pressure/cros_ec_baro.c
+++ b/drivers/iio/pressure/cros_ec_baro.c
@@ -126,7 +126,6 @@ static int cros_ec_baro_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_baro_state *state;
struct iio_chan_spec *channel;
@@ -136,7 +135,6 @@ static int cros_ec_baro_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)