summaryrefslogtreecommitdiff
path: root/src/lib/selfboot.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-08 18:02:24 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-09 17:30:21 +0100
commit45fde705b627d6194f795237647ce42eb535d1c3 (patch)
tree4e64bbab1033cd1f281564de14bb59119c3bc89d /src/lib/selfboot.c
parent2f919ec4765e4484d79b866332fa19ec338db5c0 (diff)
downloadcoreboot-45fde705b627d6194f795237647ce42eb535d1c3.tar.xz
src/lib: Add space before (
Fix the following error detected by checkpatch.pl: ERROR: space required before the open parenthesis '(' TEST=Build and run on Galileo Gen2 Change-Id: I8953fecbe75136ff989c9e3cf6c5e155dcee3c3b Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18698 Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/selfboot.c')
-rw-r--r--src/lib/selfboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 0746cb9011..f9f41d46df 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -369,7 +369,7 @@ static int load_self_segments(struct segment *head, struct prog *payload,
return 0;
}
- for(ptr = head->next; ptr != head; ptr = ptr->next) {
+ for (ptr = head->next; ptr != head; ptr = ptr->next) {
/*
* Add segments to bootmem memory map before a bounce buffer is
* allocated so that there aren't conflicts with the actual
@@ -391,7 +391,7 @@ static int load_self_segments(struct segment *head, struct prog *payload,
return 0;
}
- for(ptr = head->next; ptr != head; ptr = ptr->next) {
+ for (ptr = head->next; ptr != head; ptr = ptr->next) {
unsigned char *dest, *src, *middle, *end;
size_t len, memsz;
printk(BIOS_DEBUG, "Loading Segment: addr: 0x%016lx memsz: 0x%016lx filesz: 0x%016lx\n",
@@ -415,7 +415,7 @@ static int load_self_segments(struct segment *head, struct prog *payload,
end = dest + memsz;
/* Copy data from the initial buffer */
- switch(ptr->compression) {
+ switch (ptr->compression) {
case CBFS_COMPRESS_LZMA: {
printk(BIOS_DEBUG, "using LZMA\n");
timestamp_add_now(TS_START_ULZMA);