Skip to content

Commit

Permalink
mfd: pcf50633: Remove unneded ret variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Lee Jones committed Oct 30, 2015
1 parent a260fba commit e7238fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/pcf50633-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit e7238fd

Please sign in to comment.