From f389745cb78723391542bd89e809d6c30e87dc61 Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Wed, 30 Oct 2019 13:25:13 +0100 Subject: __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 Signed-off-by: Jens Axboe --- src/queue.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3