Messages in this thread | | | Date | Tue, 11 Apr 2017 16:28:29 +0200 | From | Sebastian Reichel <> | Subject | Re: [PATCH] power: supply: charger manager: refactor return statements |
| |
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@etezian.org>
Thanks, queued.
-- Sebastian [unhandled content-type:application/pgp-signature] | |