Skip to content

Commit c85c8d3

Browse files
dluke62kartben
authored andcommitted
demand_paging: Fix static assert in k_mem_paging_backing_store_page_out()
With assert condition set to true, assertion never happens. Change __ASSERT(true) to __ASSERT(false). Signed-off-by: Dmitry Lukyantsev <[email protected]>
1 parent 579e586 commit c85c8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/demand_paging/backing_store/backing_store_ondemand_semihost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void k_mem_paging_backing_store_location_free(uintptr_t location)
3434

3535
void k_mem_paging_backing_store_page_out(uintptr_t location)
3636
{
37-
__ASSERT(true, "not ever supposed to be called");
37+
__ASSERT(false, "not ever supposed to be called");
3838
k_panic();
3939
}
4040

0 commit comments

Comments
 (0)