Commit a48baac5 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Lee Jones

mfd: htc-i2cpld: 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 ea50e9d3
...@@ -318,7 +318,6 @@ static int htcpld_setup_chip_irq( ...@@ -318,7 +318,6 @@ static int htcpld_setup_chip_irq(
struct htcpld_data *htcpld; struct htcpld_data *htcpld;
struct htcpld_chip *chip; struct htcpld_chip *chip;
unsigned int irq, irq_end; unsigned int irq, irq_end;
int ret = 0;
/* Get the platform and driver data */ /* Get the platform and driver data */
htcpld = platform_get_drvdata(pdev); htcpld = platform_get_drvdata(pdev);
...@@ -333,7 +332,7 @@ static int htcpld_setup_chip_irq( ...@@ -333,7 +332,7 @@ static int htcpld_setup_chip_irq(
irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE); irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
} }
return ret; return 0;
} }
static int htcpld_register_chip_i2c( static int htcpld_register_chip_i2c(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment