netfilter: nf_reject: remove unused variable
Subsystems (2)
PATCH 1/1 netfilter: nf_reject: remove unused variable
variable oiph is not used.
Signed-off-by Taehee Yoo <[email protected]>
--- net/ipv4/netfilter/nf_reject_ipv4.c | 3 --- 1 file changed, 3 deletions(-)
net/ipv4/netfilter/nf_reject_ipv4.c +0 -3
@@ -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)
Signature · 1 line
2.9.3
Quoted 1 line · Taehee Yoo
variable oiph is not used.
Applied, thanks.