aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-07-08 06:33:10 -0400
committerJan Engelhardt <jengelh@medozas.de>2009-08-10 07:35:25 -0400
commite5afbba1869a5d9509c61f8962be9bdebf95f7d3 (patch)
tree366b370a10c29a250518246b2d5ed1d9a1c877ae /net
parent98d89b4198cf7273968e9217a62ec7ccfd760171 (diff)
netfilter: iptables: remove unused datalen variable
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/ip_tables.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index fdefae6b5dfc..3856aa3f231e 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -315,7 +315,6 @@ ipt_do_table(struct sk_buff *skb,
315 315
316 static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long)))); 316 static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long))));
317 const struct iphdr *ip; 317 const struct iphdr *ip;
318 u_int16_t datalen;
319 bool hotdrop = false; 318 bool hotdrop = false;
320 /* Initializing verdict to NF_DROP keeps gcc happy. */ 319 /* Initializing verdict to NF_DROP keeps gcc happy. */
321 unsigned int verdict = NF_DROP; 320 unsigned int verdict = NF_DROP;
@@ -328,7 +327,6 @@ ipt_do_table(struct sk_buff *skb,
328 327
329 /* Initialization */ 328 /* Initialization */
330 ip = ip_hdr(skb); 329 ip = ip_hdr(skb);
331 datalen = skb->len - ip->ihl * 4;
332 indev = in ? in->name : nulldevname; 330 indev = in ? in->name : nulldevname;
333 outdev = out ? out->name : nulldevname; 331 outdev = out ? out->name : nulldevname;
334 /* We handle fragments by dealing with the first fragment as 332 /* We handle fragments by dealing with the first fragment as
@@ -427,8 +425,6 @@ ipt_do_table(struct sk_buff *skb,
427#endif 425#endif
428 /* Target might have changed stuff. */ 426 /* Target might have changed stuff. */
429 ip = ip_hdr(skb); 427 ip = ip_hdr(skb);
430 datalen = skb->len - ip->ihl * 4;
431
432 if (verdict == IPT_CONTINUE) 428 if (verdict == IPT_CONTINUE)
433 e = ipt_next_entry(e); 429 e = ipt_next_entry(e);
434 else 430 else