*nr_events is always equal to 0, tmin has no meaning. Signed-off-by: Jackie Liu <liuyun01@xxxxxxxxxx> --- fs/io_uring.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 012bc0e..4204a53 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -808,12 +808,7 @@ static int io_iopoll_check(struct io_ring_ctx *ctx, unsigned *nr_events, int ret = 0; do { - int tmin = 0; - - if (*nr_events < min) - tmin = min - *nr_events; - - ret = io_iopoll_getevents(ctx, nr_events, tmin); + ret = io_iopoll_getevents(ctx, nr_events, min); if (ret <= 0) break; ret = 0; -- 2.7.4