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)
commit49708749701d957dacb2b01ea3d71e457804f7eb
treef719ff20d9a899fc0cf83502ffe4208c03ebda86
parent54d5d2d56bb6c46c996a4d249dbae3b12a7a4fac
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