summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-17 15:04:36 +1000
committerPatrick Georgi <patrick@georgi-clan.de>2014-06-25 11:38:33 +0200
commitb0cbb2cd174a55098135f3419c50ad2a8f72a1eb (patch)
tree8161bdddfbb17d6146f33f4a19ea571b5a3f5c13
parent502c3db939b8c3904008b85945520c7b0d044098 (diff)
drivers/intel/gma: Uninitialized var before if condition
The variable 'wait' is used uninitialized whenever 'if' condition is false if (val & DDI_BUF_CTL_ENABLE) { ^~~~~~~~~~~~~~~~~~~~~~~~ Leading to an uninitialized use occurs here: if (wait) ^~~~ Change-Id: I7d96bf1e33b9c4312d4a0ba8276e83d17d6cd070 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6052 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r--src/drivers/intel/gma/intel_ddi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/gma/intel_ddi.c b/src/drivers/intel/gma/intel_ddi.c
index 9ddd781c97..f28e943ed5 100644
--- a/src/drivers/intel/gma/intel_ddi.c
+++ b/src/drivers/intel/gma/intel_ddi.c
@@ -123,7 +123,7 @@ static void intel_wait_ddi_buf_idle(int port)
void intel_ddi_prepare_link_retrain(struct intel_dp *intel_dp, int port)
{
- int wait;
+ int wait = 0;
uint32_t val;
if (io_i915_read32(DP_TP_CTL(port)) & DP_TP_CTL_ENABLE) {