Staging: iio: ade7758_core: Remove unnecessary goto.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 6 Mar 2016 13:18:47 +0000 (18:48 +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/ade7758_core.c

index 0db23e4d1852b01936823da0c8c79225667d0049..40f5afaa984b617b16a77e48c647a1c9f72fd284 100644 (file)
@@ -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;
 }