From: "Jayachandran C." This patch fixes an error reported by Coverity. Error reported: Pointer returned from "nlk_sk" is never used Patch description: 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: Andrew Morton --- net/netlink/af_netlink.c | 3 --- 1 files changed, 3 deletions(-) diff -puN net/netlink/af_netlink.c~netlink-remove-dead-code-in-af_netlinkc net/netlink/af_netlink.c --- devel/net/netlink/af_netlink.c~netlink-remove-dead-code-in-af_netlinkc 2005-10-18 20:31:53.000000000 -0700 +++ devel-akpm/net/netlink/af_netlink.c 2005-10-18 20:31:53.000000000 -0700 @@ -740,11 +740,8 @@ int netlink_attachskb(struct sock *sk, s 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); _