summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--fb/fbstipple.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ec76a26c6..8865609ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-06 Keith Packard <keithp@keithp.com>
+
+ * fb/fbstipple.c: (fbEvenStipple):
+ Coverity #333, #334 - eliminate unncessary test
+ for always true condition in fbEvenStipple.
+
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/parser/Monitor.c:
diff --git a/fb/fbstipple.c b/fb/fbstipple.c
index 44aa5f331..175413092 100644
--- a/fb/fbstipple.c
+++ b/fb/fbstipple.c
@@ -148,9 +148,8 @@ fbEvenStipple (FbBits *dst,
/*
* Get pointer to stipple mask array for this depth
*/
- fbBits = 0; /* unused */
- if (pixelsPerDst <= 8)
- fbBits = fbStippleTable[pixelsPerDst];
+ /* fbStippleTable covers all valid bpp (4,8,16,32) */
+ fbBits = fbStippleTable[pixelsPerDst];
while (height--)
{