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

mfd: da903x: Simplify function return logic

The invoked function already returns zero on success or a negative
errno code so there is no need to open code the logic in the caller.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Javier Martinez Canillas and committed by
Lee Jones
5597da29 b158b69a

+1 -5
+1 -5
drivers/mfd/da903x.c
··· 532 532 return ret; 533 533 } 534 534 535 - ret = da903x_add_subdevs(chip, pdata); 536 - if (ret) 537 - return ret; 538 - 539 - return 0; 535 + return da903x_add_subdevs(chip, pdata); 540 536 } 541 537 542 538 static int da903x_remove(struct i2c_client *client)