From: Hagen Paul Pfeifer Date: Fri, 25 Feb 2011 05:45:17 +0000 (+0000) Subject: ipv6: totlen is declared and assigned but not used X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a5f5e3689c8682e06ba155676d69ccf3f4172cb4;p=openwrt%2Fstaging%2Fblogic.git ipv6: totlen is declared and assigned but not used Signed-off-by: Hagen Paul Pfeifer Signed-off-by: David S. Miller --- 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, { 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);