From 20eb3f159fe3629d1bfb6b9437912f55b690e068 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Mar 2006 20:18:43 +0000 Subject: Coverity #92: Eliminate a dead code path. --- ChangeLog | 5 +++++ src/mga_dri.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 54b6221..87b3a33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-15 Adam Jackson + + * src/mga_dri.c: + Coverity #92: Eliminate a dead code path. + 2005-12-20 Kevin E. Martin * configure.ac: diff --git a/src/mga_dri.c b/src/mga_dri.c index 1847484..46e5f98 100644 --- a/src/mga_dri.c +++ b/src/mga_dri.c @@ -150,7 +150,6 @@ static Bool MGAInitVisualConfigs( ScreenPtr pScreen ) } i = 0; - depth = 1; for ( accum = 0 ; accum <= 1 ; accum++ ) { for ( stencil = 0 ; stencil <= 1 ; stencil++ ) { for ( db = 1 ; db >= 0 ; db-- ) { @@ -183,11 +182,7 @@ static Bool MGAInitVisualConfigs( ScreenPtr pScreen ) } pConfigs[i].stereo = FALSE; pConfigs[i].bufferSize = 16; - if ( depth ) { - pConfigs[i].depthSize = 16; - } else { - pConfigs[i].depthSize = 0; - } + pConfigs[i].depthSize = 16; if ( stencil ) { pConfigs[i].stencilSize = 8; } else { -- cgit v1.2.3