summaryrefslogtreecommitdiff
path: root/src/lib/selfboot.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-08 16:52:22 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-09 17:27:02 +0100
commitb2d834a93afe129851f9aa7400f3fb2f42be20a4 (patch)
tree798c6b1c82e0aed11325e8fb477baed4c676c943 /src/lib/selfboot.c
parent75b859978a6b1901301f4ee0b53de84d3d83bd0a (diff)
src/lib: Fix space between type, * and variable name
Fix the following errors detected by checkpatch.pl: ERROR: "foo* bar" should be "foo *bar" ERROR: "(foo*)" should be "(foo *)" ERROR: "foo * const * bar" should be "foo * const *bar" TEST=Build and run on Galileo Gen2 Change-Id: I0d20ca360d8829f7d7670bacf0da4a0300bfb0c1 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18696 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/selfboot.c')
-rw-r--r--src/lib/selfboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 162a03443c..0746cb9011 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -465,7 +465,7 @@ static int load_self_segments(struct segment *head, struct prog *payload,
if ((unsigned long)end > bounce_buffer) {
if ((unsigned long)dest < bounce_buffer) {
unsigned char *from = dest;
- unsigned char *to = (unsigned char*)(lb_start-(bounce_buffer-(unsigned long)dest));
+ unsigned char *to = (unsigned char *)(lb_start-(bounce_buffer-(unsigned long)dest));
unsigned long amount = bounce_buffer-(unsigned long)dest;
printk(BIOS_DEBUG, "move prefix around: from %p, to %p, amount: %lx\n", from, to, amount);
memcpy(to, from, amount);
@@ -475,7 +475,7 @@ static int load_self_segments(struct segment *head, struct prog *payload,
unsigned long to = lb_end;
unsigned long amount = (unsigned long)end - from;
printk(BIOS_DEBUG, "move suffix around: from %lx, to %lx, amount: %lx\n", from, to, amount);
- memcpy((char*)to, (char*)from, amount);
+ memcpy((char *)to, (char *)from, amount);
}
}