Message ID | cc882a706b7e3c221261fb387826ecec09033e21.1691546329.git.asml.silence@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | random for-next cleanups | expand |
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 3c97401240c2..aa531debeb81 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2485,10 +2485,10 @@ int io_run_task_work_sig(struct io_ring_ctx *ctx) if (!llist_empty(&ctx->work_llist)) { __set_current_state(TASK_RUNNING); if (io_run_local_work(ctx) > 0) - return 1; + return 0; } if (io_run_task_work() > 0) - return 1; + return 0; if (task_sigpending(current)) return -EINTR; return 0;
Nobody cares about io_run_task_work_sig returning 1, we only check for negative errors. Simplify by keeping to 0/-error returns. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> --- io_uring/io_uring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)