unstick r358232

Revision 358232

Date:
2020/02/21 22:11:14
Author:
dim
Revision Log:
MFC r358074:

Fix the following -Werror warning from clang 10.0.0:

sys/arm/allwinner/clkng/aw_clk_mipi.c:144:6: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
m++;
^
sys/arm/allwinner/clkng/aw_clk_mipi.c:142:5: note: previous statement is here
if (best == *fout)
^

Move the increment operations into the for loop headers instead.

Discussed with: manu
Files:

Legend:

 
Added
 
Removed
 
Modified
  • stable/12

     
  • stable/12/sys/arm/allwinner/clkng/aw_clk_mipi.c

     
    129 129 *factor_k = 0;
    130 130 *factor_m = 0;
    131 131
    132 for (n = aw_clk_factor_get_min(&sc->n); n <= aw_clk_factor_get_max(&sc->n); ) {
    133 for (k = aw_clk_factor_get_min(&sc->k); k <= aw_clk_factor_get_max(&sc->k); ) {
    134 for (m = aw_clk_factor_get_min(&sc->m); m <= aw_clk_factor_get_max(&sc->m); ) {
    132 for (n = aw_clk_factor_get_min(&sc->n); n <= aw_clk_factor_get_max(&sc->n); n++) {
    133 for (k = aw_clk_factor_get_min(&sc->k); k <= aw_clk_factor_get_max(&sc->k); k++) {
    134 for (m = aw_clk_factor_get_min(&sc->m); m <= aw_clk_factor_get_max(&sc->m); m++) {
    135 135 cur = (fparent * n * k) / m;
    136 136 if ((*fout - cur) < (*fout - best)) {
    137 137 best = cur;
     
    141 141 }
    142 142 if (best == *fout)
    143 143 return (best);
    144 m++;
    145 144 }
    146 k++;
    147 145 }
    148 n++;
    149 146 }
    150 147
    151 148 return best;