Skip to content

Commit

Permalink
llc: Use sock_graft() instead of by-hand version.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 17, 2008
1 parent 338db08 commit ee5850d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/llc/af_llc.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock)

static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
{
sock_graft(sk, sock);
sk->sk_type = sock->type;
sk->sk_sleep = &sock->wait;
sk->sk_socket = sock;
sock->sk = sk;
sock->ops = &llc_ui_ops;
}

Expand Down

0 comments on commit ee5850d

Please sign in to comment.