mfd: pcf50633: Remove unneded ret variable
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 29 Sep 2015 11:26:03 +0000 (13:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 17:19:42 +0000 (17:19 +0000)
The ret variable is not needed since is not used in the
function. Remove the variable and just return 0 instead.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/pcf50633-irq.c

index 498286cbb5300d31f160b693e0f1d85ec254041f..71d43edf110ca1b0025929459a4e7abb42ce5856 100644 (file)
@@ -55,7 +55,7 @@ EXPORT_SYMBOL_GPL(pcf50633_free_irq);
 static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask)
 {
        u8 reg, bit;
-       int ret = 0, idx;
+       int idx;
 
        idx = irq >> 3;
        reg = PCF50633_REG_INT1M + idx;
@@ -72,7 +72,7 @@ static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask)
 
        mutex_unlock(&pcf->lock);
 
-       return ret;
+       return 0;
 }
 
 int pcf50633_irq_mask(struct pcf50633 *pcf, int irq)