Skip to content

Commit 056695b

Browse files
isilenceaxboe
authored andcommitted
io_uring: remove return from io_req_cqe_overflow()
Nobody checks io_req_cqe_overflow()'s return, make it return void. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/8f2029ad0c22f73451664172d834372608ee0a77.1691757663.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 00b0db5 commit 056695b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

io_uring/io_uring.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,15 +813,15 @@ static bool io_cqring_event_overflow(struct io_ring_ctx *ctx, u64 user_data,
813813
return true;
814814
}
815815

816-
bool io_req_cqe_overflow(struct io_kiocb *req)
816+
void io_req_cqe_overflow(struct io_kiocb *req)
817817
{
818818
if (!(req->flags & REQ_F_CQE32_INIT)) {
819819
req->extra1 = 0;
820820
req->extra2 = 0;
821821
}
822-
return io_cqring_event_overflow(req->ctx, req->cqe.user_data,
823-
req->cqe.res, req->cqe.flags,
824-
req->extra1, req->extra2);
822+
io_cqring_event_overflow(req->ctx, req->cqe.user_data,
823+
req->cqe.res, req->cqe.flags,
824+
req->extra1, req->extra2);
825825
}
826826

827827
/*

io_uring/io_uring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum {
3939
};
4040

4141
struct io_uring_cqe *__io_get_cqe(struct io_ring_ctx *ctx, bool overflow);
42-
bool io_req_cqe_overflow(struct io_kiocb *req);
42+
void io_req_cqe_overflow(struct io_kiocb *req);
4343
int io_run_task_work_sig(struct io_ring_ctx *ctx);
4444
void io_req_defer_failed(struct io_kiocb *req, s32 res);
4545
void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags);

0 commit comments

Comments
 (0)