mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
net: simplify sock_poll_wait
The wait_address argument is always directly derived from the filp argument, so remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f6bcc5162
commit
dd979b4df8
13 changed files with 19 additions and 18 deletions
|
@ -716,7 +716,7 @@ static __poll_t tipc_poll(struct file *file, struct socket *sock,
|
|||
struct tipc_sock *tsk = tipc_sk(sk);
|
||||
__poll_t revents = 0;
|
||||
|
||||
sock_poll_wait(file, sk_sleep(sk), wait);
|
||||
sock_poll_wait(file, wait);
|
||||
|
||||
if (sk->sk_shutdown & RCV_SHUTDOWN)
|
||||
revents |= EPOLLRDHUP | EPOLLIN | EPOLLRDNORM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue