diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2011-02-25 00:45:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-25 17:00:21 -0500 |
commit | a5f5e3689c8682e06ba155676d69ccf3f4172cb4 (patch) | |
tree | 5e29960dabb86477ad9ae9be6092b1e3e19a626f /net/ipv6 | |
parent | 3b193ade594e4f2d501d4c3a9f43d49176f03230 (diff) |
ipv6: totlen is declared and assigned but not used
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_output.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 2600e2288724..25a2647f9942 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -274,13 +274,10 @@ int ip6_nd_hdr(struct sock *sk, struct sk_buff *skb, struct net_device *dev, | |||
274 | { | 274 | { |
275 | struct ipv6_pinfo *np = inet6_sk(sk); | 275 | struct ipv6_pinfo *np = inet6_sk(sk); |
276 | struct ipv6hdr *hdr; | 276 | struct ipv6hdr *hdr; |
277 | int totlen; | ||
278 | 277 | ||
279 | skb->protocol = htons(ETH_P_IPV6); | 278 | skb->protocol = htons(ETH_P_IPV6); |
280 | skb->dev = dev; | 279 | skb->dev = dev; |
281 | 280 | ||
282 | totlen = len + sizeof(struct ipv6hdr); | ||
283 | |||
284 | skb_reset_network_header(skb); | 281 | skb_reset_network_header(skb); |
285 | skb_put(skb, sizeof(struct ipv6hdr)); | 282 | skb_put(skb, sizeof(struct ipv6hdr)); |
286 | hdr = ipv6_hdr(skb); | 283 | hdr = ipv6_hdr(skb); |