From 98668df06e3c507dd9269b9b80182c2379a43444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Peixoto?= Date: Mon, 11 Nov 2024 14:47:25 +0000 Subject: [PATCH] fix(core/remio): add missing operator to check pending requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/core/remio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/remio.c b/src/core/remio.c index 9aa2b9b8..9921b18e 100644 --- a/src/core/remio.c +++ b/src/core/remio.c @@ -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); } /**