summaryrefslogtreecommitdiff
path: root/drivers/regulator/vctrl-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-03-29 09:46:31 +0800
committerMark Brown <broonie@kernel.org>2019-04-01 15:17:34 +0700
commit9e488c0a59cbb8353962dae974b77361920c1777 (patch)
treeca75416c30b5dc4eac9988dfab05bc7340b317fb /drivers/regulator/vctrl-regulator.c
parentc07608f737bd5ecf336b68427d4c9671283bf7b9 (diff)
regulator: vctrl: Remove unneeded continue statement
Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/vctrl-regulator.c')
-rw-r--r--drivers/regulator/vctrl-regulator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/vctrl-regulator.c b/drivers/regulator/vctrl-regulator.c
index 78de002037c7..259864520a06 100644
--- a/drivers/regulator/vctrl-regulator.c
+++ b/drivers/regulator/vctrl-regulator.c
@@ -334,10 +334,8 @@ static int vctrl_init_vtable(struct platform_device *pdev)
ctrl_uV = regulator_list_voltage(ctrl_reg, i);
if (ctrl_uV < vrange_ctrl->min_uV ||
- ctrl_uV > vrange_ctrl->max_uV) {
+ ctrl_uV > vrange_ctrl->max_uV)
rdesc->n_voltages--;
- continue;
- }
}
if (rdesc->n_voltages == 0) {