Once REQ_F_POLLED is flagged, req->apoll must have a valid value, so remove this check. Signed-off-by: Xiaoguang Wang <xiaoguang.wang@xxxxxxxxxxxxxxxxx> --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 736d456e7913..7361ae53cad3 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6557,7 +6557,7 @@ static void io_clean_op(struct io_kiocb *req) break; } } - if ((req->flags & REQ_F_POLLED) && req->apoll) { + if (req->flags & REQ_F_POLLED) { kfree(req->apoll->double_poll); kfree(req->apoll); req->apoll = NULL; -- 2.14.4.44.g2045bb6