summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-04-24 19:51:29 +0200
committerDavid S. Miller <davem@davemloft.net>2014-04-24 19:51:29 +0200
commita64d90fd962c2956da7505f98a302408450365e2 (patch)
tree5f713dfd8b65b3012773af78e0d0bf6670000bb6 /net
parentMerge branch 'netlink-caps' (diff)
downloadlinux-a64d90fd962c2956da7505f98a302408450365e2.tar.xz
linux-a64d90fd962c2956da7505f98a302408450365e2.zip
netfilter: Fix warning in nfnetlink_receive().
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>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nfnetlink.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
index 84392f3237c1..e009087620e3 100644
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -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 ||