Skip to content

Commit

Permalink
demand_paging: Fix static assert in k_mem_paging_backing_store_page_o…
Browse files Browse the repository at this point in the history
…ut()

With assert condition set to true, assertion never happens.
Change __ASSERT(true) to __ASSERT(false).

Signed-off-by: Dmitry Lukyantsev <dmitrylu@meta.com>
  • Loading branch information
dluke62 authored and kartben committed Jan 8, 2025
1 parent 579e586 commit c85c8d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void k_mem_paging_backing_store_location_free(uintptr_t location)

void k_mem_paging_backing_store_page_out(uintptr_t location)
{
__ASSERT(true, "not ever supposed to be called");
__ASSERT(false, "not ever supposed to be called");
k_panic();
}

Expand Down

0 comments on commit c85c8d3

Please sign in to comment.