summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSandhya Bankar <bankarsandhya512@gmail.com>2016-03-06 18:51:55 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-11 22:09:09 -0800
commit63ac41f5d81bfc4f2035ce780581d1f0dbf9b934 (patch)
tree5b6b4467e1c492953df5fc6e64ae2064d4f7001f /drivers
parent3949d9292a5d880c249f1d7f0f83cd6aad20b42f (diff)
Staging: iio: ade7854: Remove unnecessary goto.
Remove unnecessary goto. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/meter/ade7854.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c
index b0b1be71991a..9e439af7100d 100644
--- a/drivers/staging/iio/meter/ade7854.c
+++ b/drivers/staging/iio/meter/ade7854.c
@@ -417,7 +417,7 @@ static int ade7854_set_irq(struct device *dev, bool enable)
ret = st->read_reg_32(dev, ADE7854_MASK0, &irqen);
if (ret)
- goto error_ret;
+ return ret;
if (enable)
irqen |= BIT(17); /* 1: interrupt enabled when all periodical
@@ -426,10 +426,7 @@ static int ade7854_set_irq(struct device *dev, bool enable)
irqen &= ~BIT(17);
ret = st->write_reg_32(dev, ADE7854_MASK0, irqen);
- if (ret)
- goto error_ret;
-error_ret:
return ret;
}