aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/htc-i2cpld.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-09-29 07:26:01 -0400
committerLee Jones <lee.jones@linaro.org>2015-10-30 13:19:41 -0400
commita48baac52aab9b017fb79f27795e69193e0f1d24 (patch)
tree0a3b381e36a9a4180efa88ee3e056201b6bbb3e7 /drivers/mfd/htc-i2cpld.c
parentea50e9d3c44b3830eb25286fda5d9f83a68141cf (diff)
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: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/htc-i2cpld.c')
-rw-r--r--drivers/mfd/htc-i2cpld.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index 1bd5b042c8b3..0c6ff727b2ec 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -318,7 +318,6 @@ static int htcpld_setup_chip_irq(
318 struct htcpld_data *htcpld; 318 struct htcpld_data *htcpld;
319 struct htcpld_chip *chip; 319 struct htcpld_chip *chip;
320 unsigned int irq, irq_end; 320 unsigned int irq, irq_end;
321 int ret = 0;
322 321
323 /* Get the platform and driver data */ 322 /* Get the platform and driver data */
324 htcpld = platform_get_drvdata(pdev); 323 htcpld = platform_get_drvdata(pdev);
@@ -333,7 +332,7 @@ static int htcpld_setup_chip_irq(
333 irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE); 332 irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
334 } 333 }
335 334
336 return ret; 335 return 0;
337} 336}
338 337
339static int htcpld_register_chip_i2c( 338static int htcpld_register_chip_i2c(