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

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>

authored by

Javier Martinez Canillas and committed by
Lee Jones
a48baac5 ea50e9d3

+1 -2
+1 -2
drivers/mfd/htc-i2cpld.c
··· 318 318 struct htcpld_data *htcpld; 319 319 struct htcpld_chip *chip; 320 320 unsigned int irq, irq_end; 321 - int ret = 0; 322 321 323 322 /* Get the platform and driver data */ 324 323 htcpld = platform_get_drvdata(pdev); ··· 332 333 irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE); 333 334 } 334 335 335 - return ret; 336 + return 0; 336 337 } 337 338 338 339 static int htcpld_register_chip_i2c(