Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7238fd2 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Lee Jones
Browse files

mfd: pcf50633: Remove unneded ret variable



The ret variable is not needed since is not used in the
function. Remove the variable and just return 0 instead.

Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a260fba1
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -55,7 +55,7 @@ EXPORT_SYMBOL_GPL(pcf50633_free_irq);
static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask)
static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask)
{
{
	u8 reg, bit;
	u8 reg, bit;
	int ret = 0, idx;
	int idx;


	idx = irq >> 3;
	idx = irq >> 3;
	reg = PCF50633_REG_INT1M + idx;
	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);
	mutex_unlock(&pcf->lock);


	return ret;
	return 0;
}
}


int pcf50633_irq_mask(struct pcf50633 *pcf, int irq)
int pcf50633_irq_mask(struct pcf50633 *pcf, int irq)