sna/fb: Eliminate implicit fallthrough
Duplicate a bit of code in FbDoLeftMaskByteRRop() switch statement to avoid the fall through. And while at it sort the cases based on the left byte and length. Makes the pattern matcher in my brain much happier. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
1804eacc85
commit
b88d9287df
|
|
@ -185,11 +185,13 @@ typedef int FbStride;
|
|||
FbStorePart(dst,sizeof (FbBits) - 3,CARD8,xor); \
|
||||
FbStorePart(dst,sizeof (FbBits) - 2,CARD8,xor); \
|
||||
break; \
|
||||
case sizeof (FbBits) - 3: \
|
||||
FbStorePart(dst,sizeof (FbBits) - 3,CARD8,xor); \
|
||||
FbStorePart(dst,sizeof (FbBits) - 2,CARD16,xor); \
|
||||
break; \
|
||||
case (sizeof (FbBits) - 2) | (1 << (FB_SHIFT - 3)): \
|
||||
FbStorePart(dst,sizeof (FbBits) - 2,CARD8,xor); \
|
||||
break; \
|
||||
case sizeof (FbBits) - 3: \
|
||||
FbStorePart(dst,sizeof (FbBits) - 3,CARD8,xor); \
|
||||
case sizeof (FbBits) - 2: \
|
||||
FbStorePart(dst,sizeof (FbBits) - 2,CARD16,xor); \
|
||||
break; \
|
||||
|
|
|
|||
Loading…
Reference in New Issue