commit | 31dfe686ed0ba5a796bcfc5a6745e77ddb5daa4e | [log] [tgz] |
---|---|---|
author | Matthias Kaehlcke <mka@chromium.org> | Wed Sep 14 09:52:06 2016 -0700 |
committer | Mark Brown <broonie@kernel.org> | Fri Sep 16 17:33:40 2016 +0100 |
tree | a2306feb6e845d6cedce484ea52394389f27b249 | |
parent | 57995a4860542ea2089558c84f739e12d5ca1059 [diff] |
regulator: core: Simplify error flow in _regulator_do_set_voltage() If the voltage can not be set jump to the end of the function. This avoids having to check for an error multiple times and eliminates one level of nesting in a follow-up change. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>