Messages in this thread Patch in this message | | | From | Namhyung Kim <> | Subject | [PATCH] epoll: remove unnecessary bit operation in epoll_create1 syscall | Date | Wed, 12 Jan 2011 19:58:16 +0900 |
| |
@flags can have O_CLOEXEC only so bitwise AND is not necessary.
Signed-off-by: Namhyung Kim <namhyung@gmail.com> --- fs/eventpoll.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 8cf07242067d..2e21fb85b8b6 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1209,7 +1209,7 @@ SYSCALL_DEFINE1(epoll_create1, int, flags) * a file structure and a free file descriptor. */ error = anon_inode_getfd("[eventpoll]", &eventpoll_fops, ep, - O_RDWR | (flags & O_CLOEXEC)); + O_RDWR | flags); if (error < 0) ep_free(ep); -- 1.7.3.4.600.g982838b0
| |