提交 5b40b3e6 编写于 作者: K kbuild test robot 提交者: Sebastian Reichel

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: NFengguang Wu <fengguang.wu@intel.com>
Reviewed-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 8f961c0a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册