From f59a75c99da593651217fda6f30f91ed45583ee8 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Fri, 10 Mar 2017 18:07:11 -0800 Subject: src/lib: Remove semicolon from end of macro Fix the following warning detected by checkpatch.pl: WARNING: macros should not use a trailing semicolon TEST=Build and run on Galileo Gen2 Change-Id: Ie1d966b0f1f8fff401d6314fd2ef005ab6ac69db Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18764 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/lib/lzmadecode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/lzmadecode.c b/src/lib/lzmadecode.c index e74116040a..c25001f26a 100644 --- a/src/lib/lzmadecode.c +++ b/src/lib/lzmadecode.c @@ -71,12 +71,12 @@ #define UpdateBit0(p) \ Range = bound; \ - *(p) += (kBitModelTotal - *(p)) >> kNumMoveBits; + *(p) += (kBitModelTotal - *(p)) >> kNumMoveBits #define UpdateBit1(p) \ Range -= bound; \ Code -= bound; \ - *(p) -= (*(p)) >> kNumMoveBits; + *(p) -= (*(p)) >> kNumMoveBits #define RC_GET_BIT2(p, mi, A0, A1) \ IfBit0(p) { \ @@ -230,7 +230,7 @@ int LzmaDecode(CLzmaDecoderState *vs, prob = p + IsMatch + (state << kNumPosBitsMax) + posState; IfBit0(prob) { int symbol = 1; - UpdateBit0(prob) + UpdateBit0(prob); prob = p + Literal + (LZMA_LIT_SIZE * ((((nowPos) & literalPosMask) << lc) + (previousByte >> (8 - lc)))); -- cgit v1.2.3