summaryrefslogtreecommitdiffstats
path: root/src/lib/jpeg.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-08 17:37:06 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-09 17:29:33 +0100
commit2f919ec4765e4484d79b866332fa19ec338db5c0 (patch)
tree1ddb3a7eba06bdd40657c5f63bc8dce322c530a6 /src/lib/jpeg.c
parentb2d834a93afe129851f9aa7400f3fb2f42be20a4 (diff)
downloadcoreboot-2f919ec4765e4484d79b866332fa19ec338db5c0.tar.gz
coreboot-2f919ec4765e4484d79b866332fa19ec338db5c0.tar.bz2
coreboot-2f919ec4765e4484d79b866332fa19ec338db5c0.zip
src/lib: Remove braces for single statements
Fix the following warning detected by checkpatch.pl: WARNING: braces {} are not necessary for single statement blocks TEST=Build and run on Galileo Gen2 Change-Id: Ie4b41f6fb75142ddd75103a55e0347ed85e7e873 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18697 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/lib/jpeg.c')
-rw-r--r--src/lib/jpeg.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/jpeg.c b/src/lib/jpeg.c
index 9dc5e135c2fa..e6626b8131ba 100644
--- a/src/lib/jpeg.c
+++ b/src/lib/jpeg.c
@@ -931,9 +931,8 @@ static void col221111(int *out, unsigned char *pic, int width)
outc = out + 64 * 4;
for (i = 2; i > 0; i--) {
for (j = 4; j > 0; j--) {
- for (k = 0; k < 8; k++) {
+ for (k = 0; k < 8; k++)
PIC221111(k);
- }
outc += 8;
outy += 16;
pic0 += 2 * width;
@@ -956,9 +955,8 @@ static void col221111_16(int *out, unsigned char *pic, int width)
outc = out + 64 * 4;
for (i = 2; i > 0; i--) {
for (j = 4; j > 0; j--) {
- for (k = 0; k < 8; k++) {
+ for (k = 0; k < 8; k++)
PIC221111_16(k);
- }
outc += 8;
outy += 16;
pic0 += 2 * width;
@@ -981,9 +979,8 @@ static void col221111_32(int *out, unsigned char *pic, int width)
outc = out + 64 * 4;
for (i = 2; i > 0; i--) {
for (j = 4; j > 0; j--) {
- for (k = 0; k < 8; k++) {
+ for (k = 0; k < 8; k++)
PIC221111_32(k);
- }
outc += 8;
outy += 16;
pic0 += 2 * width;