]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: iio: ade7854: Remove unnecessary goto.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 6 Mar 2016 13:21:55 +0000 (18:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Remove unnecessary goto.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7854.c

index b0b1be71991a0f49aa851166a8a96f08f4d2c0d1..9e439af7100db47eed17171d1f29d6ba5a0e0c0c 100644 (file)
@@ -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;
 }