From 0dd655f8a845cd168e64fcb786fd01d3d3c918cf Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 11 Jul 2016 14:22:16 -0500 Subject: lib/selfboot: remove duplicate prog_set_area() There were two successive calls to prog_set_area() which duplicated the same logic. Remove the unnecessary redundancy. Change-Id: I594577f8e7e78d403e7a5656f78e784e98c2c859 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/15602 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/lib/selfboot.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib/selfboot.c') diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c index 61784152dd..832dad5421 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -508,9 +508,6 @@ void *selfload(struct prog *payload) /* Update the payload's area with the bounce buffer information. */ prog_set_area(payload, (void *)(uintptr_t)bounce_buffer, bounce_size); - /* Update the payload's area with the bounce buffer information. */ - prog_set_area(payload, (void *)(uintptr_t)bounce_buffer, bounce_size); - return (void *)entry; out: -- cgit v1.2.3