From 5dacc822327689c0f096093756473c96fba67d76 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 7 Apr 2006 02:20:11 +0000 Subject: Coverity #333, #334 - eliminate unncessary test for always true condition in fbEvenStipple. --- fb/fbstipple.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fb') 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--) { -- cgit v1.2.3