drm/i915: Eliminate one indent leel from vlv_find_best_dpll
Use 'continue' to get rid of one indent level in vlv_find_best_dpll() Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
24eb2d599b
commit
43b0ac5317
@ -699,25 +699,27 @@ vlv_find_best_dpll(const intel_limit_t *limit, struct drm_crtc *crtc,
|
|||||||
refclk) / (2*refclk));
|
refclk) / (2*refclk));
|
||||||
m = m1 * m2;
|
m = m1 * m2;
|
||||||
vco = updrate * m;
|
vco = updrate * m;
|
||||||
if (vco >= limit->vco.min && vco < limit->vco.max) {
|
|
||||||
ppm = 1000000 * ((vco / p) - fastclk) / fastclk;
|
if (vco < limit->vco.min || vco >= limit->vco.max)
|
||||||
absppm = (ppm > 0) ? ppm : (-ppm);
|
continue;
|
||||||
if (absppm < 100 && ((p1 * p2) > (bestp1 * bestp2))) {
|
|
||||||
bestppm = 0;
|
ppm = 1000000 * ((vco / p) - fastclk) / fastclk;
|
||||||
flag = 1;
|
absppm = (ppm > 0) ? ppm : (-ppm);
|
||||||
}
|
if (absppm < 100 && ((p1 * p2) > (bestp1 * bestp2))) {
|
||||||
if (absppm < bestppm - 10) {
|
bestppm = 0;
|
||||||
bestppm = absppm;
|
flag = 1;
|
||||||
flag = 1;
|
}
|
||||||
}
|
if (absppm < bestppm - 10) {
|
||||||
if (flag) {
|
bestppm = absppm;
|
||||||
bestn = n;
|
flag = 1;
|
||||||
bestm1 = m1;
|
}
|
||||||
bestm2 = m2;
|
if (flag) {
|
||||||
bestp1 = p1;
|
bestn = n;
|
||||||
bestp2 = p2;
|
bestm1 = m1;
|
||||||
flag = 0;
|
bestm2 = m2;
|
||||||
}
|
bestp1 = p1;
|
||||||
|
bestp2 = p2;
|
||||||
|
flag = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user