diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-03-15 20:18:43 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-03-15 20:18:43 +0000 |
commit | 20eb3f159fe3629d1bfb6b9437912f55b690e068 (patch) | |
tree | e6e60edd4f2f194b49721e0718b91d10c567e809 | |
parent | 0be3b6f166709984611affad740bddaecd0bb880 (diff) |
Coverity #92: Eliminate a dead code path.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/mga_dri.c | 7 |
2 files changed, 6 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2006-03-15 Adam Jackson <ajax@freedesktop.org> + + * src/mga_dri.c: + Coverity #92: Eliminate a dead code path. + 2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org> * 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 { |