Commit 4bac2bcd authored by Christoph Hellwig's avatar Christoph Hellwig

net/nfc: convert to ->poll_mask

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 9490e40a
...@@ -548,16 +548,13 @@ static inline __poll_t llcp_accept_poll(struct sock *parent) ...@@ -548,16 +548,13 @@ static inline __poll_t llcp_accept_poll(struct sock *parent)
return 0; return 0;
} }
static __poll_t llcp_sock_poll(struct file *file, struct socket *sock, static __poll_t llcp_sock_poll_mask(struct socket *sock, __poll_t events)
poll_table *wait)
{ {
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
__poll_t mask = 0; __poll_t mask = 0;
pr_debug("%p\n", sk); pr_debug("%p\n", sk);
sock_poll_wait(file, sk_sleep(sk), wait);
if (sk->sk_state == LLCP_LISTEN) if (sk->sk_state == LLCP_LISTEN)
return llcp_accept_poll(sk); return llcp_accept_poll(sk);
...@@ -899,7 +896,7 @@ static const struct proto_ops llcp_sock_ops = { ...@@ -899,7 +896,7 @@ static const struct proto_ops llcp_sock_ops = {
.socketpair = sock_no_socketpair, .socketpair = sock_no_socketpair,
.accept = llcp_sock_accept, .accept = llcp_sock_accept,
.getname = llcp_sock_getname, .getname = llcp_sock_getname,
.poll = llcp_sock_poll, .poll_mask = llcp_sock_poll_mask,
.ioctl = sock_no_ioctl, .ioctl = sock_no_ioctl,
.listen = llcp_sock_listen, .listen = llcp_sock_listen,
.shutdown = sock_no_shutdown, .shutdown = sock_no_shutdown,
...@@ -919,7 +916,7 @@ static const struct proto_ops llcp_rawsock_ops = { ...@@ -919,7 +916,7 @@ static const struct proto_ops llcp_rawsock_ops = {
.socketpair = sock_no_socketpair, .socketpair = sock_no_socketpair,
.accept = sock_no_accept, .accept = sock_no_accept,
.getname = llcp_sock_getname, .getname = llcp_sock_getname,
.poll = llcp_sock_poll, .poll_mask = llcp_sock_poll_mask,
.ioctl = sock_no_ioctl, .ioctl = sock_no_ioctl,
.listen = sock_no_listen, .listen = sock_no_listen,
.shutdown = sock_no_shutdown, .shutdown = sock_no_shutdown,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment