diff options
author | Kornilios Kourtis <kornilios@gmail.com> | 2019-10-30 13:25:13 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-30 09:11:35 -0600 |
commit | f389745cb78723391542bd89e809d6c30e87dc61 (patch) | |
tree | 66d8785e05a610fb2f3e3c84732cacfea5bd5a74 | |
parent | 4fcf0777c4c334d0b785baed0ec72411905001e9 (diff) | |
download | liburing-f389745cb78723391542bd89e809d6c30e87dc61.tar.gz liburing-f389745cb78723391542bd89e809d6c30e87dc61.tar.bz2 |
__io_uring_flush_sq(): remove unnecessary check
submitted is always going to be non-zero, since we check if head and
tail are different at the start of the function.
Signed-off-by: Kornilios Kourtis <kornilios@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/queue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/queue.c b/src/queue.c index 758fce8..40df72a 100644 --- a/src/queue.c +++ b/src/queue.c @@ -90,8 +90,7 @@ static int __io_uring_flush_sq(struct io_uring *ring) * Ensure that the kernel sees the SQE updates before it sees the tail * update. */ - if (submitted) - io_uring_smp_store_release(sq->ktail, ktail); + io_uring_smp_store_release(sq->ktail, ktail); return submitted; } |