unix_dgram_poll(): no TCP_SYN_SENT state for AF_UNIX
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index dc02a16..c3f8f8e 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2694,9 +2694,6 @@ static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,
if (sk->sk_type == SOCK_SEQPACKET) {
if (sk->sk_state == TCP_CLOSE)
mask |= EPOLLHUP;
- /* connection hasn't started yet? */
- if (sk->sk_state == TCP_SYN_SENT)
- return mask;
}
/* No write status requested, avoid expensive OUT tests. */