* [PATCH] netfilter: nf_reject: remove unused variable
@ 2017-03-07 13:02 Taehee Yoo
2017-03-08 18:03 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Taehee Yoo @ 2017-03-07 13:02 UTC (permalink / raw)
To: pablo, netfilter-devel; +Cc: ap420073
variable oiph is not used.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
---
net/ipv4/netfilter/nf_reject_ipv4.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/ipv4/netfilter/nf_reject_ipv4.c b/net/ipv4/netfilter/nf_reject_ipv4.c
index 146d861..7cd8d0d 100644
--- a/net/ipv4/netfilter/nf_reject_ipv4.c
+++ b/net/ipv4/netfilter/nf_reject_ipv4.c
@@ -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)
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] netfilter: nf_reject: remove unused variable
2017-03-07 13:02 [PATCH] netfilter: nf_reject: remove unused variable Taehee Yoo
@ 2017-03-08 18:03 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-03-08 18:03 UTC (permalink / raw)
To: Taehee Yoo; +Cc: netfilter-devel
On Tue, Mar 07, 2017 at 10:02:50PM +0900, Taehee Yoo wrote:
> variable oiph is not used.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-08 18:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07 13:02 [PATCH] netfilter: nf_reject: remove unused variable Taehee Yoo
2017-03-08 18:03 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).