netfilter: Fix warning in nfnetlink_receive().
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:51:29 +0000 (13:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:51:29 +0000 (13:51 -0400)
net/netfilter/nfnetlink.c: In function ‘nfnetlink_rcv’:
net/netfilter/nfnetlink.c:371:14: warning: unused variable ‘net’ [-Wunused-variable]

Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c

index 84392f3..e009087 100644 (file)
@@ -368,7 +368,6 @@ done:
 static void nfnetlink_rcv(struct sk_buff *skb)
 {
        struct nlmsghdr *nlh = nlmsg_hdr(skb);
-       struct net *net = sock_net(skb->sk);
        int msglen;
 
        if (nlh->nlmsg_len < NLMSG_HDRLEN ||