Skip to content

Commit f005bf1

Browse files
oleg-nesterovbrauner
authored andcommitted
poll: kill poll_does_not_wait()
It no longer has users. Signed-off-by: Oleg Nesterov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent b284986 commit f005bf1

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

include/linux/poll.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525

2626
struct poll_table_struct;
2727

28-
/*
28+
/*
2929
* structures and helpers for f_op->poll implementations
3030
*/
3131
typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_table_struct *);
3232

3333
/*
34-
* Do not touch the structure directly, use the access functions
35-
* poll_does_not_wait() and poll_requested_events() instead.
34+
* Do not touch the structure directly, use the access function
35+
* poll_requested_events() instead.
3636
*/
3737
typedef struct poll_table_struct {
3838
poll_queue_proc _qproc;
@@ -53,16 +53,6 @@ static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_addres
5353
}
5454
}
5555

56-
/*
57-
* Return true if it is guaranteed that poll will not wait. This is the case
58-
* if the poll() of another file descriptor in the set got an event, so there
59-
* is no need for waiting.
60-
*/
61-
static inline bool poll_does_not_wait(const poll_table *p)
62-
{
63-
return p == NULL || p->_qproc == NULL;
64-
}
65-
6656
/*
6757
* Return the set of events that the application wants to poll for.
6858
* This is useful for drivers that need to know whether a DMA transfer has

0 commit comments

Comments
 (0)