mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-11-30 21:30:25 +00:00
io_storage: use unsigned int for index
This change avoids warning about type conversion. Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
This commit is contained in:
parent
aa8d5f88e0
commit
5a8e2aeec4
@ -94,7 +94,7 @@ static void set_handle(uintptr_t *handle, io_entity_t *entity)
|
||||
static int find_first_entity(const io_entity_t *entity, unsigned int *index_out)
|
||||
{
|
||||
int result = -ENOENT;
|
||||
for (int index = 0; index < MAX_IO_HANDLES; ++index) {
|
||||
for (unsigned int index = 0; index < MAX_IO_HANDLES; ++index) {
|
||||
if (entity_map[index] == entity) {
|
||||
result = 0;
|
||||
*index_out = index;
|
||||
|
Loading…
Reference in New Issue
Block a user