summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-04-23 22:17:04 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-04-25 15:55:21 +0000
commitd84e20b33c9907e671fe44d9955ee5b1540ede80 (patch)
tree6d2e515168e488056d1266fe4f05f4957278ddc2 /src/lib
parent6ee9ee4cab5bb47f660234400393ac8d2ef50998 (diff)
downloadcoreboot-d84e20b33c9907e671fe44d9955ee5b1540ede80.tar.xz
src/lib/selfboot: Remove unused variables
Change-Id: I8d80084095912c30bfd8fc100bf27b522485a08a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32430 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/lib')
-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 9aa47413c5..a0bb711f8a 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -146,10 +146,10 @@ static int check_payload_segments(struct cbfs_payload_segment *cbfssegs,
{
uint8_t *dest;
size_t memsz;
- struct cbfs_payload_segment *first_segment, *seg, segment;
+ struct cbfs_payload_segment *seg, segment;
enum bootmem_type dest_type = *(enum bootmem_type *)args;
- for (first_segment = seg = cbfssegs;; ++seg) {
+ for (seg = cbfssegs;; ++seg) {
printk(BIOS_DEBUG, "Checking segment from ROM address 0x%p\n", seg);
cbfs_decode_payload_segment(&segment, seg);
dest = (uint8_t *)(uintptr_t)segment.load_addr;