All of lore.kernel.org
 help / color / mirror / Atom feed
* + aio-remove-unnecessary-check.patch added to -mm tree
@ 2011-01-04 22:42 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-01-04 22:42 UTC (permalink / raw)
  To: mm-commits; +Cc: namhyung, jmoyer


The patch titled
     aio: remove unnecessary check
has been added to the -mm tree.  Its filename is
     aio-remove-unnecessary-check.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: aio: remove unnecessary check
From: Namhyung Kim <namhyung@gmail.com>

'nr >= min_nr >= 0' always satisfies 'nr >= 0' so the check is unnecesary.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/aio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/aio.c~aio-remove-unnecessary-check fs/aio.c
--- a/fs/aio.c~aio-remove-unnecessary-check
+++ a/fs/aio.c
@@ -1839,7 +1839,7 @@ SYSCALL_DEFINE5(io_getevents, aio_contex
 	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);
 	}
_

Patches currently in -mm which might be from namhyung@gmail.com are

linux-next.patch
vfs-remove-a-warning-on-open_fmode.patch
vfs-add-__fmode_exec.patch
drivers-telephony-ixjc-fix-warning.patch
fs-char_devc-remove-unused-cdev_index.patch
aio-remove-unnecessary-check.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-04 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 22:42 + aio-remove-unnecessary-check.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.