diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-22 16:27:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:54 -0400 |
commit | 72c2d53192004845cbc19cd8a30b3212a9288140 (patch) | |
tree | 31fcd924438f03d5aa09d13ffd813fb153da37c3 /fs/eventpoll.c | |
parent | 22bd002ee76aa7d7a3393f39d977f6c106153c60 (diff) |
file->f_op is never NULL...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 473e09da7d02..31fd77cd81eb 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -1816,7 +1816,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, | |||
1816 | 1816 | ||
1817 | /* The target file descriptor must support poll */ | 1817 | /* The target file descriptor must support poll */ |
1818 | error = -EPERM; | 1818 | error = -EPERM; |
1819 | if (!tf.file->f_op || !tf.file->f_op->poll) | 1819 | if (!tf.file->f_op->poll) |
1820 | goto error_tgt_fput; | 1820 | goto error_tgt_fput; |
1821 | 1821 | ||
1822 | /* Check if EPOLLWAKEUP is allowed */ | 1822 | /* Check if EPOLLWAKEUP is allowed */ |