Skip to content

Commit

Permalink
[TIPC]: Remove redundant socket wait queue initialization
Browse files Browse the repository at this point in the history
This patch eliminates re-initialization of the standard socket
wait queue used for sleeping in TIPC's socket creation code.

Signed-off-by: Allan Stephens <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ajstephens authored and davem330 committed Apr 14, 2008
1 parent 6fb9114 commit 9673693
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ static int tipc_create(struct net *net, struct socket *sock, int protocol)
}

sock_init_data(sock, sk);
init_waitqueue_head(sk->sk_sleep);
sk->sk_rcvtimeo = 8 * HZ; /* default connect timeout = 8s */

tsock = tipc_sk(sk);
Expand Down

0 comments on commit 9673693

Please sign in to comment.