diff options
author | Harald Geyer <harald@ccbib.org> | 2015-07-07 13:39:30 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-07-20 18:41:19 +0100 |
commit | 5fbb0bc466b7b43036b1dd8c9e9166ca9e69e07a (patch) | |
tree | 984f71e70c9905eeb419a0ef4df54b2df0f90bb6 /drivers/iio/humidity | |
parent | a7126003b6dd47c0088d952734379ef471156c5f (diff) | |
download | talos-obmc-linux-5fbb0bc466b7b43036b1dd8c9e9166ca9e69e07a.tar.gz talos-obmc-linux-5fbb0bc466b7b43036b1dd8c9e9166ca9e69e07a.zip |
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>
Diffstat (limited to 'drivers/iio/humidity')
-rw-r--r-- | drivers/iio/humidity/dht11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c index bb5ad57ed2a2..91976e06f1c6 100644 --- a/drivers/iio/humidity/dht11.c +++ b/drivers/iio/humidity/dht11.c @@ -263,9 +263,10 @@ static int dht11_probe(struct platform_device *pdev) dht11 = iio_priv(iio); dht11->dev = dev; - dht11->gpio = ret = of_get_gpio(node, 0); + ret = of_get_gpio(node, 0); if (ret < 0) return ret; + dht11->gpio = ret; ret = devm_gpio_request_one(dev, dht11->gpio, GPIOF_IN, pdev->name); if (ret) return ret; |