mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
8f961c0a53
commit
5b40b3e6f1
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue