aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ipcomp6.c
diff options
context:
space:
mode:
authorMicah Gruber <micah.gruber@gmail.com>2007-09-05 10:56:50 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:58 -0400
commit1dfcae776548f464bee793d06484be275ba8efe7 (patch)
tree5bb669990a2d93dd9e1cb42d5ee50e9d43e1736d /net/ipv6/ipcomp6.c
parentc9ee23dfac61a713de48b20999dcacb7ef3c5ed0 (diff)
[IPV6]: Remove unneeded pointer iph from ipcomp6_input() in net/ipv6/ipcomp6.c
This trivial patch removes the unneeded pointer iph, which is never used. Signed-off-by: Micah Gruber <micah.gruber@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipcomp6.c')
-rw-r--r--net/ipv6/ipcomp6.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c
index 473f165310ea..91b2a75b7d09 100644
--- a/net/ipv6/ipcomp6.c
+++ b/net/ipv6/ipcomp6.c
@@ -65,7 +65,6 @@ static LIST_HEAD(ipcomp6_tfms_list);
65static int ipcomp6_input(struct xfrm_state *x, struct sk_buff *skb) 65static int ipcomp6_input(struct xfrm_state *x, struct sk_buff *skb)
66{ 66{
67 int err = -ENOMEM; 67 int err = -ENOMEM;
68 struct ipv6hdr *iph;
69 struct ipv6_comp_hdr *ipch; 68 struct ipv6_comp_hdr *ipch;
70 int plen, dlen; 69 int plen, dlen;
71 struct ipcomp_data *ipcd = x->data; 70 struct ipcomp_data *ipcd = x->data;
@@ -79,7 +78,6 @@ static int ipcomp6_input(struct xfrm_state *x, struct sk_buff *skb)
79 skb->ip_summed = CHECKSUM_NONE; 78 skb->ip_summed = CHECKSUM_NONE;
80 79
81 /* Remove ipcomp header and decompress original payload */ 80 /* Remove ipcomp header and decompress original payload */
82 iph = ipv6_hdr(skb);
83 ipch = (void *)skb->data; 81 ipch = (void *)skb->data;
84 skb->transport_header = skb->network_header + sizeof(*ipch); 82 skb->transport_header = skb->network_header + sizeof(*ipch);
85 __skb_pull(skb, sizeof(*ipch)); 83 __skb_pull(skb, sizeof(*ipch));