Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/lmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,6 @@ static int _lmb_alloc_addr(phys_addr_t base, phys_size_t size, u32 flags)
base + size - 1, 1))
/* ok, reserve the memory */
return lmb_reserve(base, size, flags);

return -EINVAL;
}

return -EFAULT;
Expand Down
4 changes: 2 additions & 2 deletions test/lib/lmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,9 @@ static int test_alloc_addr(struct unit_test_state *uts, const phys_addr_t ram)
ret = lmb_alloc_addr(ram_end, 1, LMB_NONE);
ut_asserteq(ret, -EFAULT);
ret = lmb_alloc_addr(ram_end - 1, 2, LMB_NOMAP);
ut_asserteq(ret, -EINVAL);
ut_asserteq(ret, -EFAULT);
ret = lmb_alloc_addr(ram_end - 1, 2, LMB_NOOVERWRITE);
ut_asserteq(ret, -EINVAL);
ut_asserteq(ret, -EFAULT);
}
if (ram != 0) {
ret = lmb_alloc_addr(ram - 1, 1, LMB_NONE);
Expand Down
Loading