Skip to content

Commit

Permalink
Remove CodeQL warnings
Browse files Browse the repository at this point in the history
Changes made according to the latest version of zxlib.
  • Loading branch information
relatko committed Jan 4, 2024
1 parent 45b3c7b commit b6f3163
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deps/ledger-zxlib/app/ui/view_nano_inspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ void view_inspect_init(viewfunc_getInnerItem_t view_funcGetInnerItem,
}

bool h_paging_inspect_go_to_root_screen() {
return (viewdata.innerField.level >= 0) &&
(viewdata.innerField.paging.itemIdx == 0)
return (viewdata.innerField.paging.itemIdx == 0)
&& (viewdata.innerField.trace[0] != 0);
}

bool h_paging_inspect_back_screen() {
return (viewdata.innerField.level >= 0) &&
(viewdata.innerField.paging.itemIdx == (viewdata.innerField.paging.itemCount - 1))
return (viewdata.innerField.paging.itemIdx == (viewdata.innerField.paging.itemCount - 1))
&& (viewdata.innerField.trace[0] != 0);
}

Expand Down

0 comments on commit b6f3163

Please sign in to comment.