Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dc6ea7d4 authored by Andi Shyti's avatar Andi Shyti Committed by Sebastian Reichel
Browse files

power: supply: charger-manager: simplify return statements



Some trivial improvements on the returning value of the
functions:

 - remove unnecessary goto labels that just return, return
   immediately, instead.

 - do not initialize when not needed.

 - return the value from the calling function that fails instead
   of politically choosing -EINVAL.

Signed-off-by: default avatarAndi Shyti <andi@etezian.org>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent bdd9968d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment