Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Javier Martinez Canillas and committed by
Lee Jones
e7238fd2 a260fba1

+2 -2
+2 -2
drivers/mfd/pcf50633-irq.c
··· 55 55 static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask) 56 56 { 57 57 u8 reg, bit; 58 - int ret = 0, idx; 58 + int idx; 59 59 60 60 idx = irq >> 3; 61 61 reg = PCF50633_REG_INT1M + idx; ··· 72 72 73 73 mutex_unlock(&pcf->lock); 74 74 75 - return ret; 75 + return 0; 76 76 } 77 77 78 78 int pcf50633_irq_mask(struct pcf50633 *pcf, int irq)