diff options
author | Mateusz Guzik <mguzik@redhat.com> | 2016-01-06 06:41:53 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-06 08:26:52 -0500 |
commit | ccec5ee302d5cbd0273eb1c79bc935a8e3f873c6 (patch) | |
tree | d3188b6325de8fefe5cce42aef1a064954051f62 | |
parent | 8f1d57c172482c9a1568ec647fc5c2e64c6c6a57 (diff) | |
download | lwn-ccec5ee302d5cbd0273eb1c79bc935a8e3f873c6.tar.gz lwn-ccec5ee302d5cbd0273eb1c79bc935a8e3f873c6.zip |
poll: plug an unused argument to do_poll
Number of fds is already known based on passed list.
No functional changes.
Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/select.c b/fs/select.c index 015547330e88..79d0d4953cad 100644 --- a/fs/select.c +++ b/fs/select.c @@ -778,8 +778,8 @@ static inline unsigned int do_pollfd(struct pollfd *pollfd, poll_table *pwait, return mask; } -static int do_poll(unsigned int nfds, struct poll_list *list, - struct poll_wqueues *wait, struct timespec *end_time) +static int do_poll(struct poll_list *list, struct poll_wqueues *wait, + struct timespec *end_time) { poll_table* pt = &wait->pt; ktime_t expire, *to = NULL; @@ -908,7 +908,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, } poll_initwait(&table); - fdcount = do_poll(nfds, head, &table, end_time); + fdcount = do_poll(head, &table, end_time); poll_freewait(&table); for (walk = head; walk; walk = walk->next) { |