Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621340 > unrolled thread
| Started by | Sebastian Reichel <sre@kernel.org> |
|---|---|
| First post | 2017-04-11 16:30 +0200 |
| Last post | 2017-04-11 16:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] power: supply: charger manager: refactor return statements Sebastian Reichel <sre@kernel.org> - 2017-04-11 16:30 +0200
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Date | 2017-04-11 16:30 +0200 |
| Subject | Re: [PATCH] power: supply: charger manager: refactor return statements |
| Message-ID | <tv4XT-8aE-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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
Back to top | Article view | linux.kernel
csiph-web