summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Sa <noname.nuno@gmail.com>2021-01-14 22:14:04 +0100
committerNuno Sa <noname.nuno@gmail.com>2021-01-14 22:14:04 +0100
commitc0b1512fc1908563b8e3ebc8923334ce3b728f38 (patch)
tree4cd4b52d17339338bfa093d9610bfc86e992f8ac
parent865fe28ec9646b6641df772e1eadb5a506e340ee (diff)
downloadliburing-c0b1512fc1908563b8e3ebc8923334ce3b728f38.tar.gz
liburing-c0b1512fc1908563b8e3ebc8923334ce3b728f38.tar.bz2
src/queue: fix `sq_ring_needs_enter()` indentation
Signed-off-by: Nuno Sa <noname.nuno@gmail.com>
-rw-r--r--src/queue.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/queue.c b/src/queue.c
index 768e34f..88ad076 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -25,11 +25,12 @@ static inline bool sq_ring_needs_enter(struct io_uring *ring, unsigned *flags)
{
if (!(ring->flags & IORING_SETUP_SQPOLL))
return true;
- if (uring_unlikely(IO_URING_READ_ONCE(*ring->sq.kflags) &
- IORING_SQ_NEED_WAKEUP)) {
- *flags |= IORING_ENTER_SQ_WAKEUP;
- return true;
- }
+
+ if (uring_unlikely(IO_URING_READ_ONCE(*ring->sq.kflags) &
+ IORING_SQ_NEED_WAKEUP)) {
+ *flags |= IORING_ENTER_SQ_WAKEUP;
+ return true;
+ }
return false;
}