mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
3b193ade59
commit
a5f5e3689c
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue