summaryrefslogtreecommitdiff
path: root/src/lib/imd_cbmem.c
diff options
context:
space:
mode:
authorAnna Karas <aka@semihalf.com>2020-07-16 14:12:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-08-04 07:13:59 +0000
commit215e7fc399bc75f67209a2ad9ac7c9c2b5a10150 (patch)
treedb0ef42823237532766c9416ffcbbfed318ac7b3 /src/lib/imd_cbmem.c
parent93d678f8bea812c2d7ab5b4885971d0f9b25fd78 (diff)
src/lib: Remove unused function parameters in imd.c
Remove const struct imd *imd and const struct imdr *imdr parameters from the prototypes of imdr_entry_size(), imd_entry_size() and imd_entry_id() functions since they are not used anywhere. Signed-off-by: Anna Karas <aka@semihalf.com> Change-Id: I6b43e9a5ae1f1d108024b4060a04c57f5d77fb55 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43999 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/imd_cbmem.c')
-rw-r--r--src/lib/imd_cbmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c
index cb66c3b219..7638e0e578 100644
--- a/src/lib/imd_cbmem.c
+++ b/src/lib/imd_cbmem.c
@@ -178,7 +178,7 @@ int cbmem_entry_remove(const struct cbmem_entry *entry)
u64 cbmem_entry_size(const struct cbmem_entry *entry)
{
- return imd_entry_size(&imd, cbmem_to_imd(entry));
+ return imd_entry_size(cbmem_to_imd(entry));
}
void *cbmem_entry_start(const struct cbmem_entry *entry)
@@ -232,7 +232,7 @@ void cbmem_add_records_to_cbtable(struct lb_header *header)
if (e == NULL)
break;
- id = imd_entry_id(&imd, e);
+ id = imd_entry_id(e);
/* Don't add these metadata entries. */
if (id == CBMEM_ID_IMD_ROOT || id == CBMEM_ID_IMD_SMALL)
continue;
@@ -241,7 +241,7 @@ void cbmem_add_records_to_cbtable(struct lb_header *header)
lbe->tag = LB_TAG_CBMEM_ENTRY;
lbe->size = sizeof(*lbe);
lbe->address = (uintptr_t)imd_entry_at(&imd, e);
- lbe->entry_size = imd_entry_size(&imd, e);
+ lbe->entry_size = imd_entry_size(e);
lbe->id = id;
}
}