mirror of https://gitee.com/openkylin/linux.git
Staging: iio: ade7758_core: 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
78731a01f4
commit
3949d9292a
|
@ -423,7 +423,7 @@ int ade7758_set_irq(struct device *dev, bool enable)
|
|||
|
||||
ret = ade7758_spi_read_reg_24(dev, ADE7758_MASK, &irqen);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
return ret;
|
||||
|
||||
if (enable)
|
||||
irqen |= BIT(16); /* Enables an interrupt when a data is
|
||||
|
@ -432,10 +432,7 @@ int ade7758_set_irq(struct device *dev, bool enable)
|
|||
irqen &= ~BIT(16);
|
||||
|
||||
ret = ade7758_spi_write_reg_24(dev, ADE7758_MASK, irqen);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
|
||||
error_ret:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue