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>
This commit is contained in:
Родитель
8f1d57c172
Коммит
ccec5ee302
|
@ -778,8 +778,8 @@ static inline unsigned int do_pollfd(struct pollfd *pollfd, poll_table *pwait,
|
||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int do_poll(unsigned int nfds, struct poll_list *list,
|
static int do_poll(struct poll_list *list, struct poll_wqueues *wait,
|
||||||
struct poll_wqueues *wait, struct timespec *end_time)
|
struct timespec *end_time)
|
||||||
{
|
{
|
||||||
poll_table* pt = &wait->pt;
|
poll_table* pt = &wait->pt;
|
||||||
ktime_t expire, *to = NULL;
|
ktime_t expire, *to = NULL;
|
||||||
|
@ -908,7 +908,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|
||||||
}
|
}
|
||||||
|
|
||||||
poll_initwait(&table);
|
poll_initwait(&table);
|
||||||
fdcount = do_poll(nfds, head, &table, end_time);
|
fdcount = do_poll(head, &table, end_time);
|
||||||
poll_freewait(&table);
|
poll_freewait(&table);
|
||||||
|
|
||||||
for (walk = head; walk; walk = walk->next) {
|
for (walk = head; walk; walk = walk->next) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче