Skip to content

Commit

Permalink
fix(core/remio): add missing operator to check pending requests
Browse files Browse the repository at this point in the history
This commit fixes the method responsible for checking pending Remote I/O
requests by adding the missing `!` operator to the `list_empty` call.

Signed-off-by: João Peixoto <[email protected]>
  • Loading branch information
joaopeixoto13 authored and DavidMCerdeira committed Nov 18, 2024
1 parent 8f219e9 commit 5116da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/remio.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static inline struct remio_request* remio_get_request(struct remio_device* devic
*/
static inline bool remio_has_pending_request(struct remio_device* device)
{
return list_empty(&device->pending_requests_list);
return !list_empty(&device->pending_requests_list);
}

/**
Expand Down

0 comments on commit 5116da5

Please sign in to comment.