Commit 11d36e6a authored by Paolo Cretaro's avatar Paolo Cretaro Committed by Jonathan Cameron

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: default avatarPaolo Cretaro <paolocretaro@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 30f130d2
...@@ -126,7 +126,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev) ...@@ -126,7 +126,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent);
struct cros_ec_device *ec_device;
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
struct cros_ec_baro_state *state; struct cros_ec_baro_state *state;
struct iio_chan_spec *channel; struct iio_chan_spec *channel;
...@@ -136,7 +135,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev) ...@@ -136,7 +135,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev)
dev_warn(dev, "No CROS EC device found.\n"); dev_warn(dev, "No CROS EC device found.\n");
return -EINVAL; return -EINVAL;
} }
ec_device = ec_dev->ec_dev;
indio_dev = devm_iio_device_alloc(dev, sizeof(*state)); indio_dev = devm_iio_device_alloc(dev, sizeof(*state));
if (!indio_dev) if (!indio_dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment