diff --git a/fs/io_uring.c b/fs/io_uring.c index 24962368a3b50be98d406a385b77e7bb77c23044..3495700f0921700f7cf1e86737a224301b91fc20 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3650,10 +3650,7 @@ static void io_poll_complete(struct io_kiocb *req, __poll_t mask, int error) struct io_ring_ctx *ctx = req->ctx; req->poll.done = true; - if (error) - io_cqring_fill_event(req, error); - else - io_cqring_fill_event(req, mangle_poll(mask)); + io_cqring_fill_event(req, error ? error : mangle_poll(mask)); io_commit_cqring(ctx); }