summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-07-11 14:22:16 -0500
committerAaron Durbin <adurbin@chromium.org>2016-07-12 23:38:47 +0200
commit0dd655f8a845cd168e64fcb786fd01d3d3c918cf (patch)
tree257aec19de65ccf3a2e46c2cd4220cd2d4b7bf91 /src/lib
parentedfcce80b2dc474f0701786e8d44a11d59deeb13 (diff)
downloadcoreboot-0dd655f8a845cd168e64fcb786fd01d3d3c918cf.tar.xz
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 <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/15602 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/selfboot.c3
1 files changed, 0 insertions, 3 deletions
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: