Browse Source

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

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 17 năm trước cách đây
mục cha
commit
ee5850defc
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      net/llc/af_llc.c

+ 1 - 3
net/llc/af_llc.c

@@ -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;
 }