Skip to content

Commit

Permalink
ipv6: totlen is declared and assigned but not used
Browse files Browse the repository at this point in the history
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hagen Paul Pfeifer authored and David S. Miller committed Feb 25, 2011
1 parent 3b193ad commit a5f5e36
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,10 @@ int ip6_nd_hdr(struct sock *sk, struct sk_buff *skb, struct net_device *dev,
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct ipv6hdr *hdr;
int totlen;

skb->protocol = htons(ETH_P_IPV6);
skb->dev = dev;

totlen = len + sizeof(struct ipv6hdr);

skb_reset_network_header(skb);
skb_put(skb, sizeof(struct ipv6hdr));
hdr = ipv6_hdr(skb);
Expand Down

0 comments on commit a5f5e36

Please sign in to comment.