Staging: iio: ade7754: Remove unnecessary goto.
Remove unnecessary goto. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
09b9da3399
commit
78731a01f4
@ -347,7 +347,7 @@ static int ade7754_set_irq(struct device *dev, bool enable)
|
||||
|
||||
ret = ade7754_spi_read_reg_16(dev, ADE7754_IRQEN, &irqen);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
return ret;
|
||||
|
||||
if (enable)
|
||||
irqen |= BIT(14); /* Enables an interrupt when a data is
|
||||
@ -356,10 +356,7 @@ static int ade7754_set_irq(struct device *dev, bool enable)
|
||||
irqen &= ~BIT(14);
|
||||
|
||||
ret = ade7754_spi_write_reg_16(dev, ADE7754_IRQEN, irqen);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
|
||||
error_ret:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user