summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/mga_dri.c7
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 <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 {