diff options
author | Bo Yu <tsu.yubo@gmail.com> | 2017-03-10 06:57:38 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-11 21:24:38 +0300 |
commit | 0a124e98f4a5b9b03950af02a57a067ccc1016c1 (patch) | |
tree | f5c5d6efaf7b8ebf303e19f4ecf283f0fbe86e9a /drivers/staging/iio | |
parent | 3a1e3293857568f04b8886246b7a0fec130f5055 (diff) | |
download | linux-0a124e98f4a5b9b03950af02a57a067ccc1016c1.tar.xz |
Staging: iio: return expression instead of return ret
The following Coccinelle script was used to detect this:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/meter/ade7754.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/iio/meter/ade7754.c b/drivers/staging/iio/meter/ade7754.c index 024463a11c47..8f03fee3c6ea 100644 --- a/drivers/staging/iio/meter/ade7754.c +++ b/drivers/staging/iio/meter/ade7754.c @@ -349,9 +349,7 @@ static int ade7754_set_irq(struct device *dev, bool enable) else irqen &= ~BIT(14); - ret = ade7754_spi_write_reg_16(dev, ADE7754_IRQEN, irqen); - - return ret; + return ade7754_spi_write_reg_16(dev, ADE7754_IRQEN, irqen); } /* Power down the device */ |