summaryrefslogtreecommitdiff
path: root/fs/select.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-07-23 18:02:28 +0100
committerMark Brown <broonie@kernel.org>2018-07-23 18:02:28 +0100
commit0afdd676f6e575478634d961286094169adbc50d (patch)
treedc04a98e56287b9375626457c6cdd56062e5f899 /fs/select.c
parente594a0636b0213d058aec2406e13f276b70791ed (diff)
parenteef5ba1aa148ca5e6deb1e0aa1de797fa4e12cb7 (diff)
Merge branch 'i2c/smbus_xfer_unlock-immutable' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux into regmap-4.19 for sccb dependency
Diffstat (limited to 'fs/select.c')
-rw-r--r--fs/select.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/select.c b/fs/select.c
index 317891ff8165..4a6b6e4b21cb 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -34,29 +34,6 @@
#include <linux/uaccess.h>
-__poll_t vfs_poll(struct file *file, struct poll_table_struct *pt)
-{
- if (file->f_op->poll) {
- return file->f_op->poll(file, pt);
- } else if (file_has_poll_mask(file)) {
- unsigned int events = poll_requested_events(pt);
- struct wait_queue_head *head;
-
- if (pt && pt->_qproc) {
- head = file->f_op->get_poll_head(file, events);
- if (!head)
- return DEFAULT_POLLMASK;
- if (IS_ERR(head))
- return EPOLLERR;
- pt->_qproc(file, head, pt);
- }
-
- return file->f_op->poll_mask(file, events);
- } else {
- return DEFAULT_POLLMASK;
- }
-}
-EXPORT_SYMBOL_GPL(vfs_poll);
/*
* Estimate expected accuracy in ns from a timeval.