diff options
author | Andi Shyti <andi.shyti@gmail.com> | 2017-03-29 17:13:57 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-04-14 01:41:34 +0200 |
commit | dc6ea7d4cd780414facb9d201434f47abd197917 (patch) | |
tree | 40d12952a8033c9c06a599ce6395fd16b1a65fc0 /kernel/range.c | |
parent | power: supply: lp8788: prevent out of bounds array access (diff) | |
download | linux-dc6ea7d4cd780414facb9d201434f47abd197917.tar.xz linux-dc6ea7d4cd780414facb9d201434f47abd197917.zip |
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: Andi Shyti <andi@etezian.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'kernel/range.c')
0 files changed, 0 insertions, 0 deletions