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 /src/mga_dri.c | |
parent | 0be3b6f166709984611affad740bddaecd0bb880 (diff) |
Coverity #92: Eliminate a dead code path.
Diffstat (limited to 'src/mga_dri.c')
-rw-r--r-- | src/mga_dri.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 { |