summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2006-04-07 02:20:11 +0000
committerKeith Packard <keithp@keithp.com>2006-04-07 02:20:11 +0000
commit5dacc822327689c0f096093756473c96fba67d76 (patch)
treeefd92a5e49d5f1578ed14000a0364269bdd77136 /fb
parent75a9afdbf42e4196471774102e1758f18866bec6 (diff)
Coverity #333, #334 - eliminate unncessary test for always true condition
in fbEvenStipple.
Diffstat (limited to 'fb')
-rw-r--r--fb/fbstipple.c5
1 files changed, 2 insertions, 3 deletions
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--)
{