summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yu <tsu.yubo@gmail.com>2017-03-09 22:57:38 -0500
committerJonathan Cameron <jic23@kernel.org>2017-03-11 18:24:38 +0000
commit0a124e98f4a5b9b03950af02a57a067ccc1016c1 (patch)
treef5c5d6efaf7b8ebf303e19f4ecf283f0fbe86e9a
parent3a1e3293857568f04b8886246b7a0fec130f5055 (diff)
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>
-rw-r--r--drivers/staging/iio/meter/ade7754.c4
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 */