Re: [PATCH] power: supply: charger manager: refactor return statements

From: Sebastian Reichel
Date: Tue Apr 11 2017 - 10:28:39 EST


Hi,

On Thu, Mar 30, 2017 at 12:13:57AM +0900, Andi Shyti wrote:
> 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: Andi Shyti <andi@xxxxxxxxxxx>

Thanks, queued.

-- Sebastian

Attachment: signature.asc
Description: PGP signature