From b6ee0f9d920fa9cfb19f5340608bf0df72f16468 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 9 Mar 2017 13:35:26 -0800 Subject: src/lib: Move trailing statements to next line Fix the following error detected by checkpatch.pl: ERROR: trailing statements should be on next line The remaining error is a false positive in libgcov.c where the if statement spans several lines with conditional compilation directives intertwined. TEST=Build and run on Galileo Gen2 Change-Id: I37fcef78e9323340bac1367ae1c5fde334f5ce10 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18730 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/lib/lzmadecode.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/lib/lzmadecode.c') diff --git a/src/lib/lzmadecode.c b/src/lib/lzmadecode.c index 2f1a214fa5..2b03c22224 100644 --- a/src/lib/lzmadecode.c +++ b/src/lib/lzmadecode.c @@ -123,8 +123,10 @@ int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsDa if (prop0 >= (9 * 5 * 5)) return LZMA_RESULT_DATA_ERROR; { - for (propsRes->pb = 0; prop0 >= (9 * 5); propsRes->pb++, prop0 -= (9 * 5)); - for (propsRes->lp = 0; prop0 >= 9; propsRes->lp++, prop0 -= 9); + for (propsRes->pb = 0; prop0 >= (9 * 5); propsRes->pb++, prop0 -= (9 * 5)) + ; + for (propsRes->lp = 0; prop0 >= 9; propsRes->lp++, prop0 -= 9) + ; propsRes->lc = prop0; /* unsigned char remainder = (unsigned char)(prop0 / 9); @@ -221,9 +223,12 @@ int LzmaDecode(CLzmaDecoderState *vs, previousByte = (Byte)symbol; outStream[nowPos++] = previousByte; - if (state < 4) state = 0; - else if (state < 10) state -= 3; - else state -= 6; + if (state < 4) + state = 0; + else if (state < 10) + state -= 3; + else + state -= 6; } else { -- cgit v1.2.3