From: Jayachandran C Date: Thu, 13 Oct 2005 18:43:05 +0000 (-0700) Subject: [NETLINK]: Remove dead code in af_netlink.c X-Git-Tag: v2.6.15-rc1~733^2~5^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7ce406490cb248f44f510f7c0bcc357184640a;p=linux-2.6 [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. Acked-by: James Morris Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 678c3f2c0d..eab4942ac9 100644 --- a/net/netlink/af_netlink.c +++ b/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) { - struct netlink_sock *nlk; int len = skb->len; - nlk = nlk_sk(sk); - skb_queue_tail(&sk->sk_receive_queue, skb); sk->sk_data_ready(sk, len); sock_put(sk);