]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Simplify error flow in _regulator_do_set_voltage()
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 14 Sep 2016 16:52:06 +0000 (09:52 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 16 Sep 2016 16:33:40 +0000 (17:33 +0100)
commitc6198577a38baa6e2296e7e880a4e93d05ab298a
treea2306feb6e845d6cedce484ea52394389f27b249
parent033ae0fabe8150e5c840f2389f9faf06b40efd73
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>
drivers/regulator/core.c