Commit 0a124e98 authored by Bo Yu's avatar Bo Yu Committed by Jonathan Cameron

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: default avatarBo YU <tsu.yubo@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 3a1e3293
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment