netfilter: nf_reject: remove unused variable
authorTaehee Yoo <ap420073@gmail.com>
Tue, 7 Mar 2017 13:02:50 +0000 (22:02 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Mar 2017 18:02:17 +0000 (19:02 +0100)
variable oiph is not used.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nf_reject_ipv4.c

index 146d86105183e1a456a0f17ed6bb5371aa1e8f76..7cd8d0d918f82e275e0ecd31c1cea8ec8fcf345d 100644 (file)
@@ -104,7 +104,6 @@ EXPORT_SYMBOL_GPL(nf_reject_ip_tcphdr_put);
 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook)
 {
        struct sk_buff *nskb;
-       const struct iphdr *oiph;
        struct iphdr *niph;
        const struct tcphdr *oth;
        struct tcphdr _oth;
@@ -116,8 +115,6 @@ void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook)
        if (skb_rtable(oldskb)->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST))
                return;
 
-       oiph = ip_hdr(oldskb);
-
        nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) +
                         LL_MAX_HEADER, GFP_ATOMIC);
        if (!nskb)