summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2015-01-21 12:11:34 +0800
committerSebastian Reichel <sre@kernel.org>2015-01-21 14:02:30 +0100
commit5b40b3e6f1326b159f77509aa4b58e9f4c713ac0 (patch)
tree580032497576f6f951b5378f7fcd374b41ad88ef /drivers/power
parent8f961c0a53192583ac86acfb7fb6bba3fc922873 (diff)
power: max77693: fix simple_return.cocci warnings
drivers/power/max77693_charger.c:615:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/max77693_charger.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/power/max77693_charger.c b/drivers/power/max77693_charger.c
index 56cf2177aad4..841047cb9ff1 100644
--- a/drivers/power/max77693_charger.c
+++ b/drivers/power/max77693_charger.c
@@ -612,12 +612,8 @@ static int max77693_reg_init(struct max77693_charger *chg)
if (ret)
return ret;
- ret = max77693_set_charge_input_threshold_volt(chg,
+ return max77693_set_charge_input_threshold_volt(chg,
chg->charge_input_threshold_volt);
- if (ret)
- return ret;
-
- return 0;
}
#ifdef CONFIG_OF