diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-09-29 14:26:03 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-10-30 20:19:42 +0300 |
commit | e7238fd2554ebfbc2611ae5c7e58d4cd76f276dc (patch) | |
tree | 7d6c6ef9a59d36267b5186a6d69f5d2e666d70b3 /drivers/mfd/pcf50633-irq.c | |
parent | a260fba1158241d168bf14eb7cd1176b29ad263c (diff) | |
download | linux-e7238fd2554ebfbc2611ae5c7e58d4cd76f276dc.tar.xz |
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>
Diffstat (limited to 'drivers/mfd/pcf50633-irq.c')
-rw-r--r-- | drivers/mfd/pcf50633-irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/pcf50633-irq.c b/drivers/mfd/pcf50633-irq.c index 498286cbb530..71d43edf110c 100644 --- a/drivers/mfd/pcf50633-irq.c +++ b/drivers/mfd/pcf50633-irq.c @@ -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) |