Skip to content

Commit

Permalink
netfilter: Fix warning in nfnetlink_receive().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Apr 24, 2014
1 parent 29e8f59 commit a64d90f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/netfilter/nfnetlink.c
Original file line number Diff line number Diff line change
@@ -368,7 +368,6 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
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 ||

0 comments on commit a64d90f

Please sign in to comment.