summaryrefslogtreecommitdiff
path: root/test/lib/lmb.c
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2024-12-18 09:02:33 +0200
committerTom Rini <trini@konsulko.com>2024-12-30 13:21:55 -0600
commit400c34db8957bbe49b15dcc0310697f829c63e01 (patch)
tree6719b204d1bf23460d93f1d9ace69165f5089211 /test/lib/lmb.c
parent900a8951c3b6035c25632438ebc7240cbc77883c (diff)
lmb: Rename free_mem to available_mem
free_mem is a misnomer. We never update it with the free memory for LMB. Instead, it describes all available memory and is checked against used_mem to decide whether an area is free or not. So let's rename this field to better match its usage. Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'test/lib/lmb.c')
-rw-r--r--test/lib/lmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/lmb.c b/test/lib/lmb.c
index 3c3e862ffa0..6e870274fed 100644
--- a/test/lib/lmb.c
+++ b/test/lib/lmb.c
@@ -65,7 +65,7 @@ static int setup_lmb_test(struct unit_test_state *uts, struct lmb *store,
ut_assertok(lmb_push(store));
lmb = lmb_get();
- *mem_lstp = &lmb->free_mem;
+ *mem_lstp = &lmb->available_mem;
*used_lstp = &lmb->used_mem;
return 0;