iio: dht11: avoid multiple assignments to make checkpatch.pl --strict happy
We just do the assignments in two steps. Signed-off-by: Harald Geyer <harald@ccbib.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
a7126003b6
commit
5fbb0bc466
|
@ -263,9 +263,10 @@ static int dht11_probe(struct platform_device *pdev)
|
||||||
dht11 = iio_priv(iio);
|
dht11 = iio_priv(iio);
|
||||||
dht11->dev = dev;
|
dht11->dev = dev;
|
||||||
|
|
||||||
dht11->gpio = ret = of_get_gpio(node, 0);
|
ret = of_get_gpio(node, 0);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
dht11->gpio = ret;
|
||||||
ret = devm_gpio_request_one(dev, dht11->gpio, GPIOF_IN, pdev->name);
|
ret = devm_gpio_request_one(dev, dht11->gpio, GPIOF_IN, pdev->name);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue