]> git.baikalelectronics.ru Git - uboot.git/commit
k210: clk: Refactor out_of_spec tests
authorSean Anderson <seanga2@gmail.com>
Sat, 11 Sep 2021 17:20:01 +0000 (13:20 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 7 Oct 2021 08:08:22 +0000 (16:08 +0800)
commite8cd2106d205fd733c6e5f1dcda37b176c0dc6de
treef719ff20d9a899fc0cf83502ffe4208c03ebda86
parentb90d2c21ea116c47bd454a63f22bc8645da04162
k210: clk: Refactor out_of_spec tests

Everything here sits in a while (true) loop. However, this introduces a
couple of layers of indentation. We can simplify the code by introducing a
single goto instead of using continue/break. This will also make adding
loops in the next patch easier.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/clk/clk_kendryte.c