regulator: vctrl: Remove unneeded continue statement
authorAxel Lin <axel.lin@ingics.com>
Fri, 29 Mar 2019 01:46:31 +0000 (09:46 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:17:34 +0000 (15:17 +0700)
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>
drivers/regulator/vctrl-regulator.c

index 78de002037c7679ee46d0766758f099751a4cdaf..259864520a06ce8299c1a679e168c8d96fcef23a 100644 (file)
@@ -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) {