From: Namhyung Kim Date: Thu, 13 Jan 2011 01:01:08 +0000 (-0800) Subject: aio: remove unnecessary check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e41025598ea7abb4330db98f78c5a084e25682f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 8c8f6c5b6d7..43a716b367c 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); }