Skip to contentSkip to conversation

vlv: it might be wise if we initialised the flag value...

PATCH New Alan Cox 1 participant 1 message Jul 25, 2012

Subsystems (2)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 vlv: it might be wise if we initialised the flag value...

From: Alan Cox <[email protected]>

Otherwise our initial behaviour is "randomly save a bogus PLL choice" as far as I can see.

---

 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/intel_display.c +1 -0
index bc25a24..b64c7bc 100644
@@ -869,6 +869,7 @@ intel_vlv_find_best_pll(const intel_limit_t *limit, struct drm_crtc *crtc,
 	unsigned long bestppm, ppm, absppm;
 	int dotclk, flag;
 
+	flag = 0;
 	dotclk = target * 1000;
 	bestppm = 1000000;
 	ppm = absppm = 0;