aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-04-10 20:12:48 -0400
committerBen Skeggs <bskeggs@redhat.com>2013-04-26 01:37:31 -0400
commitc5bd028baae4b738075f16d00f9f857eb439cd93 (patch)
tree30b3ecaa8fc452ab78d0d681a3a833dae295f2d9 /drivers/gpu/drm
parent17f0efc4f463e5b74026863521cbd47fb93f5686 (diff)
drm/nouveau/disp: fix uninitialised eq_done in error path
Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/disp/dport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c
index fa27b02ff829..31cc8fe8e7f0 100644
--- a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c
+++ b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c
@@ -191,7 +191,7 @@ dp_link_train_cr(struct dp_state *dp)
191static int 191static int
192dp_link_train_eq(struct dp_state *dp) 192dp_link_train_eq(struct dp_state *dp)
193{ 193{
194 bool eq_done, cr_done = true; 194 bool eq_done = false, cr_done = true;
195 int tries = 0, i; 195 int tries = 0, i;
196 196
197 dp_set_training_pattern(dp, 2); 197 dp_set_training_pattern(dp, 2);