Ver código fonte

[NETLINK]: Remove dead code in af_netlink.c

Remove the variable nlk & call to nlk_sk as it does not have any side effect.

Signed-off-by: Jayachandran C. <c.jayachandran at gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Jayachandran C 19 anos atrás
pai
commit
ea7ce40649
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      net/netlink/af_netlink.c

+ 0 - 3
net/netlink/af_netlink.c

@@ -740,11 +740,8 @@ int netlink_attachskb(struct sock *sk, struct sk_buff *skb, int nonblock, long t
 
 
 int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol)
 int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol)
 {
 {
-	struct netlink_sock *nlk;
 	int len = skb->len;
 	int len = skb->len;
 
 
-	nlk = nlk_sk(sk);
-
 	skb_queue_tail(&sk->sk_receive_queue, skb);
 	skb_queue_tail(&sk->sk_receive_queue, skb);
 	sk->sk_data_ready(sk, len);
 	sk->sk_data_ready(sk, len);
 	sock_put(sk);
 	sock_put(sk);