Skip to content
Snippets Groups Projects
Commit ee5850de authored by David S. Miller's avatar David S. Miller
Browse files

llc: Use sock_graft() instead of by-hand version.


Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 338db085
No related branches found
No related tags found
No related merge requests found
...@@ -128,10 +128,8 @@ static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock) ...@@ -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) static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
{ {
sock_graft(sk, sock);
sk->sk_type = sock->type; sk->sk_type = sock->type;
sk->sk_sleep = &sock->wait;
sk->sk_socket = sock;
sock->sk = sk;
sock->ops = &llc_ui_ops; sock->ops = &llc_ui_ops;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment