Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)