Coverity #333, #334 - eliminate unncessary test for always true condition

in fbEvenStipple.
This commit is contained in:
Keith Packard 2006-04-07 02:20:11 +00:00
parent 75a9afdbf4
commit 5dacc82232
2 changed files with 8 additions and 3 deletions

View File

@ -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:

View File

@ -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--)
{