summaryrefslogtreecommitdiff
path: root/src/lib/jpeg.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-09 13:35:26 -0800
committerMartin Roth <martinroth@google.com>2017-03-12 19:19:07 +0100
commitb6ee0f9d920fa9cfb19f5340608bf0df72f16468 (patch)
tree286ab05835b81918491d9c1b027835de180723fc /src/lib/jpeg.c
parentbfdb8937b27700546bc233287c657e2f634a3177 (diff)
downloadcoreboot-b6ee0f9d920fa9cfb19f5340608bf0df72f16468.tar.xz
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 <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18730 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/lib/jpeg.c')
-rw-r--r--src/lib/jpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/jpeg.c b/src/lib/jpeg.c
index e6626b8131..c07109d099 100644
--- a/src/lib/jpeg.c
+++ b/src/lib/jpeg.c
@@ -498,7 +498,8 @@ static int dec_rec2(struct in *in, struct dec_hufftbl *hu, int *runp, int c,
*runp = i >> 8 & 15;
i >>= 16;
} else {
- for (i = DECBITS; (c = ((c << 1) | GETBITS(in, 1))) >= (hu->maxcode[i]); i++);
+ for (i = DECBITS; (c = ((c << 1) | GETBITS(in, 1))) >= (hu->maxcode[i]); i++)
+ ;
if (i >= 16) {
in->marker = M_BADHUFF;
return 0;