summaryrefslogtreecommitdiff
path: root/src/mga_dri.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-15 20:18:43 +0000
committerAdam Jackson <ajax@nwnk.net>2006-03-15 20:18:43 +0000
commit20eb3f159fe3629d1bfb6b9437912f55b690e068 (patch)
treee6e60edd4f2f194b49721e0718b91d10c567e809 /src/mga_dri.c
parent0be3b6f166709984611affad740bddaecd0bb880 (diff)
Coverity #92: Eliminate a dead code path.
Diffstat (limited to 'src/mga_dri.c')
-rw-r--r--src/mga_dri.c7
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 {