Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */