aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2019-03-29 09:46:31 +0800
committerMark Brown <[email protected]>2019-04-01 15:17:34 +0700
commit9e488c0a59cbb8353962dae974b77361920c1777 (patch)
treeca75416c30b5dc4eac9988dfab05bc7340b317fb
parentc07608f737bd5ecf336b68427d4c9671283bf7b9 (diff)
regulator: vctrl: Remove unneeded continue statement
Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-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) {