[PATCH v5 2/6] regulator: core: Simplify error flow in _regulator_do_set_voltage()

2016-09-14 Thread Matthias Kaehlcke
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 --- Changes in v5: - This patch is new for v5.

[PATCH v5 2/6] regulator: core: Simplify error flow in _regulator_do_set_voltage()

2016-09-14 Thread Matthias Kaehlcke
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 --- Changes in v5: - This patch is new for v5. drivers/regulator/core.c | 8