From: Namhyung Kim Date: Thu, 13 Jan 2011 01:01:08 +0000 (-0800) Subject: aio: remove unnecessary check X-Git-Tag: firefly_0821_release~7613^2~2915 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e41025598ea7abb4330db98f78c5a084e25682f;p=firefly-linux-kernel-4.4.55.git aio: remove unnecessary check 'nr >= min_nr >= 0' always satisfies 'nr >= 0' so the check is unnecesary. Signed-off-by: Namhyung Kim Acked-by: Jeff Moyer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/aio.c b/fs/aio.c index 8c8f6c5b6d79..43a716b367cf 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -1839,7 +1839,7 @@ SYSCALL_DEFINE5(io_getevents, aio_context_t, ctx_id, long ret = -EINVAL; if (likely(ioctx)) { - if (likely(min_nr <= nr && min_nr >= 0 && nr >= 0)) + if (likely(min_nr <= nr && min_nr >= 0)) ret = read_events(ioctx, min_nr, nr, events, timeout); put_ioctx(ioctx); }